Browse Source

Plan 9 from Bell Labs 2013-02-20

David du Colombier 11 years ago
parent
commit
0f84724bf1
6 changed files with 11 additions and 10 deletions
  1. 1 0
      sys/games/lib/fortunes
  2. 2 2
      sys/src/cmd/6c/swt.c
  3. 2 2
      sys/src/cmd/8c/swt.c
  4. 2 2
      sys/src/cmd/kc/swt.c
  5. 2 2
      sys/src/cmd/qc/swt.c
  6. 2 2
      sys/src/cmd/vc/swt.c

+ 1 - 0
sys/games/lib/fortunes

@@ -4306,3 +4306,4 @@ the rate at which apple fiddles with stuff is pretty amazing.  - quanstro
 **WARRANTY VOID IF BROKEN**
 Good to know: Git won't add an icon anywhere, it's not that sort of application.
 # Note that there must be at least one file in the sudoers.d directory (this one will do), and all files in this directory should be mode 0440.
+If it is good information which comes from nowhere it is all right but this is wrong information that comes from nowhere and it is completely wrong. - Arsène Wenger.

+ 2 - 2
sys/src/cmd/6c/swt.c

@@ -523,8 +523,8 @@ align(long i, Type *t, int op)
 long
 maxround(long max, long v)
 {
-	v += SZ_VLONG-1;
+	v = round(v, SZ_VLONG);
 	if(v > max)
-		max = round(v, SZ_VLONG);
+		return v;
 	return max;
 }

+ 2 - 2
sys/src/cmd/8c/swt.c

@@ -512,8 +512,8 @@ align(long i, Type *t, int op)
 long
 maxround(long max, long v)
 {
-	v += SZ_LONG-1;
+	v = round(v, SZ_LONG);
 	if(v > max)
-		max = round(v, SZ_LONG);
+		return v;
 	return max;
 }

+ 2 - 2
sys/src/cmd/kc/swt.c

@@ -592,8 +592,8 @@ align(long i, Type *t, int op)
 long
 maxround(long max, long v)
 {
-	v += SZ_LONG-1;
+	v = round(v, SZ_LONG);
 	if(v > max)
-		max = round(v, SZ_LONG);
+		return v;
 	return max;
 }

+ 2 - 2
sys/src/cmd/qc/swt.c

@@ -657,8 +657,8 @@ maxround(long max, long v)
 	w = SZ_LONG;
 	if((debug['8'] || hasdoubled) && !debug['4'])
 		w = SZ_DOUBLE;
-	v += w-1;
+	v = round(v, w);
 	if(v > max)
-		max = round(v, w);
+		return v;
 	return max;
 }

+ 2 - 2
sys/src/cmd/vc/swt.c

@@ -596,8 +596,8 @@ align(long i, Type *t, int op)
 long
 maxround(long max, long v)
 {
-	v += SZ_LONG-1;
+	v = round(v, SZ_LONG);
 	if(v > max)
-		max = round(v, SZ_LONG);
+		return v;
 	return max;
 }