aboutsummaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2017-08-23 17:04:42 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-08-24 12:59:15 +1000
commitc168b37a3d662ad2ab0175c940eda072b04fda9c (patch)
tree8d7d6e3234e551a61f6f642440360b54aafa3f2c /libc
parentd708090c6e52c5b70e0f032068e0465e9a66d67e (diff)
downloadskiboot-c168b37a3d662ad2ab0175c940eda072b04fda9c.zip
skiboot-c168b37a3d662ad2ab0175c940eda072b04fda9c.tar.gz
skiboot-c168b37a3d662ad2ab0175c940eda072b04fda9c.tar.bz2
libc/test/run-snprintf: int -> unsigned int
UBSan: libc/test/run-snprintf.c:123:9: runtime error: left shift of 268435456 by 4 places cannot be represented in type 'int' Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'libc')
-rw-r--r--libc/test/run-snprintf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/test/run-snprintf.c b/libc/test/run-snprintf.c
index 80993e8..5e67030 100644
--- a/libc/test/run-snprintf.c
+++ b/libc/test/run-snprintf.c
@@ -107,7 +107,8 @@ static void test_printf_x(const char* f)
{
char *buf, *buf2;
int blen;
- int i, r, n=0x1;
+ int i, r;
+ unsigned int n=0x1;
for (i=0; i<8; i++)
{