summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2019-02-27 22:32:31 +0900
committerGitHub <[email protected]>2019-02-27 22:32:31 +0900
commit759b57d22abe19c3f8448eb3c1a11465a1e3d5b0 (patch)
tree1e2c9922fb0e9ef18df148c2314f0ecb1fcf05c1
parent018f4bd32e1b4ebeb452a361148e4d35207cf412 (diff)
parent289462508980b5231f812f8a34229ad8cdb33ca9 (diff)
downloadmruby-759b57d22abe19c3f8448eb3c1a11465a1e3d5b0.tar.gz
mruby-759b57d22abe19c3f8448eb3c1a11465a1e3d5b0.zip
Merge pull request #4300 from shuujii/use-yywarning-instead-of-yywarning_s-for-MRB_WITHOUT_FLOAT
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