Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
remove high-ndk-api-level (#2677)
Browse files Browse the repository at this point in the history
  • Loading branch information
Darin726 authored and YorkShen committed Jul 11, 2019
1 parent 56444e0 commit 0c284c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions weex_core/Source/wson/wson_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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;
Expand Down

0 comments on commit 0c284c9

Please sign in to comment.