forked from pool/libmicro
5cee7b3a87
- libmicro-gcc14.patch: fix build with gcc14 OBS-URL: https://build.opensuse.org/request/show/1191053 OBS-URL: https://build.opensuse.org/package/show/benchmark/libmicro?expand=0&rev=20
14 lines
337 B
Diff
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);
|