diff --git a/src/string/api.c b/src/string/api.c
index 339cc1d..40995b3 100644
|
a
|
b
|
|
| 2315 | 2315 | return 0.0; |
| 2316 | 2316 | } |
| 2317 | 2317 | |
| | 2318 | /* local macro to call proper pow version depending on FLOATVAL */ |
| | 2319 | #if NUMVAL_SIZE == DOUBLE_SIZE |
| | 2320 | # define POW pow |
| | 2321 | #else |
| | 2322 | # define POW powl |
| | 2323 | #endif |
| | 2324 | |
| 2318 | 2325 | if (d && d_is_safe) { |
| 2319 | | f = mantissa + (1.0 * d / powl(10, d_length)); |
| | 2326 | f = mantissa + (1.0 * d / POW(10.0, d_length)); |
| 2320 | 2327 | } |
| 2321 | 2328 | |
| 2322 | 2329 | f = f * sign; |
| 2323 | 2330 | |
| 2324 | 2331 | if (e) { |
| 2325 | 2332 | if (e_sign == 1) |
| 2326 | | f *= powl(10, e); |
| | 2333 | f *= POW(10.0, e); |
| 2327 | 2334 | else |
| 2328 | | f /= powl(10, e); |
| | 2335 | f /= POW(10.0, e); |
| 2329 | 2336 | } |
| 2330 | 2337 | |
| | 2338 | #undef POW |
| | 2339 | |
| 2331 | 2340 | return f; |
| 2332 | 2341 | } |
| 2333 | 2342 | |