Skip to content

Commit c4120a4

Browse files
[arcane,utils] Corrige mauvaise valeur de retour sous Win32 pour lire un 'Real2' ou 'Real3' si la chaîne de caractères est 'inf' ou 'infinity'.
1 parent 60e4540 commit c4120a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arcane/src/arcane/utils/ValueConvert.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ _getDoubleValue(double& v, StringView s)
150150
#ifdef WIN32
151151
if (s == "infinity" || s == "inf") {
152152
v = std::numeric_limits<double>::infinity();
153-
return false;
153+
return s.size();
154154
}
155155
#endif
156156
char* ptr2 = nullptr;

0 commit comments

Comments
 (0)