diff options
author | clifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c> | 2010-01-28 18:57:19 (GMT) |
---|---|---|
committer | clifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c> | 2010-01-28 18:57:19 (GMT) |
commit | d6d626adcaed3d80f85a4ee4cc49970bd0623acc (patch) | |
tree | 6f5c67b888079471ae377f5f2894bee2ff312e5c | |
parent | ab3ca550a9066b75c9dd7d9097b0be8eb8a07cd2 (diff) |
Clifford Wolf:
Fixed bug in float parsing with locale set
git-svn-id: http://svn.clifford.at/openscad/trunk@360 b57f626f-c46c-0410-a088-ec61d464b74c
-rw-r--r-- | lexer.l | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -88,7 +88,7 @@ extern const char *parser_input_buffer; "false" return TOK_FALSE; "undef" return TOK_UNDEF; -[0-9][0-9.]* { parserlval.number = atof(yytext); return TOK_NUMBER; } +[0-9][0-9.]* { parserlval.number = QString(yytext).toDouble(); return TOK_NUMBER; } "$"?[a-zA-Z0-9_]+ { parserlval.text = strdup(yytext); return TOK_ID; } \"[^"]*\" { |