shithub: scc

Download patch

ref: e2fea8937a5f182b9e472c1e4e969efedeee8eea
parent: bbe0d56677276a42a3061a3580b8b2b325b8f109
author: Roberto E. Vargas Caballero <[email protected]>
date: Sun Sep 2 17:03:59 EDT 2018

[tests/libc] Don't mask the numbers in error messages

--- a/tests/libc/execute/0006-limits.c
+++ b/tests/libc/execute/0006-limits.c
@@ -92,9 +92,9 @@
 			c |= 1;
 		}
 		if (c != CHAR_MAX)
-			printf("wrong char max %d-%d", c & 0xFF, CHAR_MAX);
+			printf("wrong char max %d-%d", c, CHAR_MAX);
 		if (CHAR_MIN != 0)
-			printf("wrong char min %d-%d", c & 0xFF, CHAR_MIN);
+			printf("wrong char min %d-%d", c, CHAR_MIN);
 	} else {
 		for (c = i = 0; i < CHAR_BIT -1; i++) {
 			c <<= 1;
@@ -101,10 +101,10 @@
 			c |= 1;
 		}
 		if (c != CHAR_MAX)
-			printf("wrong char max %d-%d", c & 0xFF, CHAR_MAX);
+			printf("wrong char max %d-%d", c, CHAR_MAX);
 		c = -c - 1;
 		if (c != CHAR_MIN)
-			printf("wrong char min %d-%d", c & 0xFF, CHAR_MIN);
+			printf("wrong char min %d-%d", c, CHAR_MIN);
 	}
 }