Mercurial > hg > orthanc-stone
comparison OrthancStone/Sources/Toolbox/GenericToolbox.h @ 1679:5b8b88e5bfd6
successfully running unit tests in WebAssembly
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 24 Nov 2020 12:59:10 +0100 |
parents | 8563ea5d8ae4 |
children | 9ac2a65d4172 |
comparison
equal
deleted
inserted
replaced
1678:1393e3393a0b | 1679:5b8b88e5bfd6 |
---|---|
253 neg = -1; | 253 neg = -1; |
254 ++p; | 254 ++p; |
255 } | 255 } |
256 while (*p >= '0' && *p <= '9') | 256 while (*p >= '0' && *p <= '9') |
257 { | 257 { |
258 r = (r * 10) + (*p - '0'); // 1 12 123 123 12345 | 258 r = (r * 10) + static_cast<T>(*p - '0'); // 1 12 123 123 12345 |
259 ++p; | 259 ++p; |
260 } | 260 } |
261 r *= neg; | 261 r *= neg; |
262 if (*p == 0) | 262 if (*p == 0) |
263 return true; | 263 return true; |