diff options
author | Chris Robinson <[email protected]> | 2016-03-24 11:11:17 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2016-03-24 11:11:17 -0700 |
commit | b0acfa17634281bf95f423d903aac5dfc23f3697 (patch) | |
tree | fd9b9c2fb8c2fe0c543d3643d1b8ae0f4e5150e7 /Alc/ambdec.c | |
parent | 3646cf817cae87bba2ba45b8414e3e07ac87c7b4 (diff) |
Add a cast and a couple float type fixes
Diffstat (limited to 'Alc/ambdec.c')
-rw-r--r-- | Alc/ambdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/ambdec.c b/Alc/ambdec.c index 6920d705..29bd4afa 100644 --- a/Alc/ambdec.c +++ b/Alc/ambdec.c @@ -105,7 +105,7 @@ static char *read_float(ALfloat *num, const char *line) #ifdef HAVE_STRTOF *num = strtof(line, &end); #else - *num = strtod(line, &end); + *num = (ALfloat)strtod(line, &end); #endif if(end && *end != '\0') end = lstrip(end); |