Skip to content

Commit 5580f7f

Browse files
committed
Value: Use double instead of float for string conversion
1 parent f15f936 commit 5580f7f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/scratch/value.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,9 +323,9 @@ class LIBSCRATCHCPP_EXPORT Value : public ValueVariant
323323
}
324324

325325
bool ok;
326-
float f = stringToDouble(str, &ok);
326+
double d = stringToDouble(str, &ok);
327327
if (ok) {
328-
*this = f;
328+
*this = d;
329329
m_type = Type::Number;
330330
}
331331
}

0 commit comments

Comments
 (0)