Skip to content

Commit

Permalink
Fixed DMD build on VS2010.
Browse files Browse the repository at this point in the history
  • Loading branch information
Orvid committed Jan 13, 2015
1 parent 7fc0bde commit 1b5e0de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/root/port.c
Expand Up @@ -341,7 +341,7 @@ float Port::strtof(const char *p, char **endp)
return static_cast<float>(::strtod(p, endp)); // does not set errno for underflows, but unused

_CRT_FLOAT flt;
int res = _atoflt(&flt, p);
int res = _atoflt(&flt, (char*)p);
if (res == _UNDERFLOW)
errno = ERANGE;
return flt.f;
Expand Down

0 comments on commit 1b5e0de

Please sign in to comment.