Mercurial > hg > orthanc-stone
comparison Framework/Toolbox/GenericToolbox.h @ 1084:6cf58788f37f broker
fix GenericToolboxTests
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 22 Oct 2019 13:19:25 +0200 |
parents | 287ec78f63b4 |
children | 97cbb2c31a65 |
comparison
equal
deleted
inserted
replaced
1083:f72d1ab42932 | 1084:6cf58788f37f |
---|---|
114 ++p; | 114 ++p; |
115 } | 115 } |
116 if (*p == '.') | 116 if (*p == '.') |
117 { | 117 { |
118 double f = 0.0; | 118 double f = 0.0; |
119 int n = 1; | 119 size_t n = 1; |
120 ++p; | 120 ++p; |
121 while (*p >= '0' && *p <= '9' && n < FRAC_FACTORS_LEN) | 121 while (*p >= '0' && *p <= '9' && n < FRAC_FACTORS_LEN) |
122 { | 122 { |
123 f += (*p - '0') * FRAC_FACTORS[n]; | 123 f += (*p - '0') * FRAC_FACTORS[n]; |
124 ++p; | 124 ++p; |