diff 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
line wrap: on
line diff
--- a/OrthancStone/Sources/Toolbox/GenericToolbox.h	Tue Nov 24 07:40:19 2020 +0100
+++ b/OrthancStone/Sources/Toolbox/GenericToolbox.h	Tue Nov 24 12:59:10 2020 +0100
@@ -255,7 +255,7 @@
       }
       while (*p >= '0' && *p <= '9')
       {
-        r = (r * 10) + (*p - '0'); // 1 12 123 123 12345
+        r = (r * 10) + static_cast<T>(*p - '0'); // 1 12 123 123 12345
         ++p;
       }
       r *= neg;