summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorKOBAYASHI Shuji <[email protected]>2019-02-27 20:21:40 +0900
committerKOBAYASHI Shuji <[email protected]>2019-02-27 20:21:40 +0900
commit289462508980b5231f812f8a34229ad8cdb33ca9 (patch)
tree1e2c9922fb0e9ef18df148c2314f0ecb1fcf05c1
parent018f4bd32e1b4ebeb452a361148e4d35207cf412 (diff)
downloadmruby-289462508980b5231f812f8a34229ad8cdb33ca9.tar.gz
mruby-289462508980b5231f812f8a34229ad8cdb33ca9.zip
Use `yywarning()` instead of `yywarning_s()` for `MRB_WITHOUT_FLOAT`
-rw-r--r--mrbgems/mruby-compiler/core/parse.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-compiler/core/parse.y b/mrbgems/mruby-compiler/core/parse.y
index 1b2d64b25..82aa346d0 100644
--- a/mrbgems/mruby-compiler/core/parse.y
+++ b/mrbgems/mruby-compiler/core/parse.y
@@ -5167,7 +5167,7 @@ parser_yylex(parser_state *p)
tokfix(p);
if (is_float) {
#ifdef MRB_WITHOUT_FLOAT
- yywarning_s(p, "floating point numbers are not supported", tok(p));
+ yywarning(p, "floating point numbers are not supported");
pylval.nd = new_int(p, "0", 10);
return tINTEGER;
#else