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

Commit

Permalink
strtof -> strtod (#2648)
Browse files Browse the repository at this point in the history
  • Loading branch information
Darin726 authored and jianhan-he committed Jul 3, 2019
1 parent 45da9ef commit c2b3664
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion weex_core/Source/core/common/view_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ namespace WeexCore {

inline float getFloat(const char* src) {
char *end;
float ret = strtof(src, &end);
float ret = (float) strtod(src, &end);

if(*end != '\0'){
ret = NAN;
}
Expand Down

0 comments on commit c2b3664

Please sign in to comment.