workaround clang-14 bug
[LibreOffice.git] / external / dtoa / ubsan.patch.0
blobde39d41aca683859e9191ab7fdf8f78c0194e268
1 --- src/dtoa.c
2 +++ src/dtoa.c
3 @@ -3618,7 +3618,7 @@
4                         while(c == '0')
5                                 c = *++s;
6                         if (c > '0' && c <= '9') {
7 -                               L = c - '0';
8 +                               ULong L = c - '0';
9                                 s1 = s;
10                                 while((c = *++s) >= '0' && c <= '9')
11                                         L = 10*L + c - '0';