You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by ky...@apache.org on 2019/07/11 02:39:08 UTC

[incubator-weex] branch master updated: remove high-ndk-api-level (#2677)

This is an automated email from the ASF dual-hosted git repository.

kyork pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-weex.git


The following commit(s) were added to refs/heads/master by this push:
     new 0c284c9  remove high-ndk-api-level (#2677)
0c284c9 is described below

commit 0c284c982a037427082751f687adcba65c32d983
Author: darin <dy...@qq.com>
AuthorDate: Thu Jul 11 10:39:03 2019 +0800

    remove high-ndk-api-level (#2677)
---
 weex_core/Source/wson/wson_parser.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/weex_core/Source/wson/wson_parser.cpp b/weex_core/Source/wson/wson_parser.cpp
index 74edeb9..9689647 100644
--- a/weex_core/Source/wson/wson_parser.cpp
+++ b/weex_core/Source/wson/wson_parser.cpp
@@ -213,7 +213,7 @@ double wson_parser::nextNumber(uint8_t type) {
             wson_next_bts(wsonBuffer, size);
             uint8_t *utf8 = wson_next_bts(wsonBuffer, size);
             str.append(reinterpret_cast<char *>(utf8), size);
-            return atof(str.c_str());
+            return strtod(str.c_str(), nullptr);
         }
         case WSON_STRING_TYPE:
         case WSON_NUMBER_BIG_INT_TYPE:
@@ -223,7 +223,7 @@ double wson_parser::nextNumber(uint8_t type) {
             wson_next_bts(wsonBuffer, size);
             uint16_t *utf16 = (uint16_t *) wson_next_bts(wsonBuffer, size);
             wson::utf16_convert_to_utf8_string(utf16, size/sizeof(uint16_t), requireDecodingBuffer(size*2),str);
-            return atof(str.c_str());
+            return strtod(str.c_str(), nullptr);
         }
         case WSON_NULL_TYPE:
             return  0;