diff options
author | Marcin BaczyĆski <[email protected]> | 2010-03-13 14:26:45 +0100 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2010-03-15 08:38:24 -0700 |
commit | 346298c7658f2ec8b105e5e53101637af232724f (patch) | |
tree | 986b382e8be6eba02eb2fa213fad1efd1782fa8b /src/mesa/shader/slang | |
parent | 63af29bfbe265318bcf5be69e420de361b900321 (diff) |
Replace _mesa_strtod with _mesa_strtof.
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/shader/slang')
-rw-r--r-- | src/mesa/shader/slang/slang_compile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/shader/slang/slang_compile.c b/src/mesa/shader/slang/slang_compile.c index b95c15fea61..ad866761570 100644 --- a/src/mesa/shader/slang/slang_compile.c +++ b/src/mesa/shader/slang/slang_compile.c @@ -246,7 +246,7 @@ parse_general_number(slang_parse_ctx *ctx, float *number) if (flt[strlen(flt) - 1] == 'f' || flt[strlen(flt) - 1] == 'F') { flt[strlen(flt) - 1] = '\0'; } - *number = (float)_mesa_strtod(flt, (char **)NULL); + *number = _mesa_strtof(flt, (char **)NULL); free(flt); return 1; @@ -312,7 +312,7 @@ parse_float(slang_parse_ctx * C, float *number) slang_string_concat(whole, "E"); slang_string_concat(whole, exponent); - *number = (float) (_mesa_strtod(whole, (char **) NULL)); + *number = _mesa_strtof(whole, (char **) NULL); _slang_free(whole); } |