mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
readfloat.c: fix float to int assignment
This commit is contained in:
+1
-1
@@ -18,7 +18,7 @@ mrb_read_float(const char *str, char **endp, double *fp)
|
||||
while (ISSPACE((unsigned char)*p)) p++;
|
||||
|
||||
// Handle sign
|
||||
if (*p == '-') { sign = -1.0; p++; }
|
||||
if (*p == '-') { sign = -1; p++; }
|
||||
else if (*p == '+') p++;
|
||||
|
||||
// Parse integer part
|
||||
|
||||
Reference in New Issue
Block a user