aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2013-05-03 19:25:03 +0200
committerSverker Eriksson <[email protected]>2013-05-03 19:25:03 +0200
commitcb1ece4fecfbb5987b682cc1460568ee254376bc (patch)
tree05d944832bce4644383c46270648efa0cf0a891d /erts/emulator
parentd08b9775ad07a89d070aa653a1e5549ce705d524 (diff)
downloadotp-cb1ece4fecfbb5987b682cc1460568ee254376bc.tar.gz
otp-cb1ece4fecfbb5987b682cc1460568ee254376bc.tar.bz2
otp-cb1ece4fecfbb5987b682cc1460568ee254376bc.zip
erts: Fix assert in isdigit for negative characters
Diffstat (limited to 'erts/emulator')
-rw-r--r--erts/emulator/sys/win32/sys_float.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/sys/win32/sys_float.c b/erts/emulator/sys/win32/sys_float.c
index fb1ffc3089..ceedc8635f 100644
--- a/erts/emulator/sys/win32/sys_float.c
+++ b/erts/emulator/sys/win32/sys_float.c
@@ -52,7 +52,7 @@ void erts_thread_disable_fpe(void)
int
sys_chars_to_double(char *buf, double *fp)
{
- char *s = buf, *t, *dp;
+ unsigned char *s = buf, *t, *dp;
/* Robert says that something like this is what he really wanted:
* (The [.,] radix test is NOT what Robert wanted - it was added later)
@@ -120,7 +120,7 @@ sys_chars_to_double(char *buf, double *fp)
int
sys_double_to_chars_ext(double fp, char *buffer, size_t buffer_size, size_t decimals)
{
- char *s = buffer;
+ unsigned char *s = buffer;
if (erts_snprintf(buffer, buffer_size, "%.*e", decimals, fp) >= buffer_size)
return -1;