SHA256
1
0
forked from pool/libmicro
libmicro/removed_undefined_warning.patch

14 lines
337 B
Diff

Index: malloc.c
===================================================================
--- malloc.c.orig
+++ malloc.c
@@ -77,7 +77,7 @@ benchmark_optswitch(int opt, char *optar
break;
case 's':
opts[optscnt] = sizetoint(optarg);
- optscnt = ++optscnt & (31);
+ optscnt = (optscnt + 1) & (31);
break;
default:
return (-1);