From b4a8adf22286f0e10170504e8804ffd98bbf0f90 Mon Sep 17 00:00:00 2001 From: gambas Date: Sat, 16 Feb 2019 02:00:17 +0100 Subject: [PATCH] Fix string to floating point conversion routine. [INTERPRETER] * BUG: Fix string to floating point conversion routine. --- main/gbx/gbx_number.c | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/main/gbx/gbx_number.c b/main/gbx/gbx_number.c index c24034ca7..4d9c01cf6 100644 --- a/main/gbx/gbx_number.c +++ b/main/gbx/gbx_number.c @@ -52,11 +52,24 @@ #define IS_PURE_INTEGER(_int64_val) ((_int64_val) == ((int)(_int64_val))) static uint64_t _pow_10[18] = { - 10, 100, 1000, 10000, - 1000000, 10000000, 100000000, 1000000000, - 10000000000, 10000000000, 100000000000, 1000000000000, - 10000000000000, 100000000000000, 10000000000000000, 100000000000000000, - 1000000000000000000, 10000000000000000000U + 10, + 100, + 1000, + 10000, + 100000, + 1000000, + 10000000, + 100000000, + 1000000000, + 10000000000, + 100000000000, + 1000000000000, + 10000000000000, + 100000000000000, + 1000000000000000, + 10000000000000000, + 100000000000000000, + 1000000000000000000 };