diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-08-05 13:33:46 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-08-05 13:33:46 +0900 |
| commit | 151d0c14ed8447cf62d1cc72680bf6d6fafe548e (patch) | |
| tree | 2bc5f31b36b56f473cd1b8e965b6d6e4754504c1 /mrbgems/mruby-complex | |
| parent | 96ce4563bd7d8cb44ff2eb8038ed74279d33e442 (diff) | |
| parent | 334afb167c0a1fa478a53c3844f37c0f1fd866dd (diff) | |
| download | mruby-151d0c14ed8447cf62d1cc72680bf6d6fafe548e.tar.gz mruby-151d0c14ed8447cf62d1cc72680bf6d6fafe548e.zip | |
Merge pull request #4615 from shuujii/use-new-specifiers-modifiers-of-mrb_vfromat
Use new specifiers/modifiers of `mrb_vfromat()`
Diffstat (limited to 'mrbgems/mruby-complex')
| -rw-r--r-- | mrbgems/mruby-complex/src/complex.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mrbgems/mruby-complex/src/complex.c b/mrbgems/mruby-complex/src/complex.c index aa2afc2ce..a87b95dea 100644 --- a/mrbgems/mruby-complex/src/complex.c +++ b/mrbgems/mruby-complex/src/complex.c @@ -101,7 +101,7 @@ complex_to_f(mrb_state *mrb, mrb_value self) struct mrb_complex *p = complex_ptr(mrb, self); if (p->imaginary != 0) { - mrb_raisef(mrb, E_RANGE_ERROR, "can't convert %S into Float", self); + mrb_raisef(mrb, E_RANGE_ERROR, "can't convert %v into Float", self); } return mrb_float_value(mrb, p->real); @@ -113,7 +113,7 @@ complex_to_i(mrb_state *mrb, mrb_value self) struct mrb_complex *p = complex_ptr(mrb, self); if (p->imaginary != 0) { - mrb_raisef(mrb, E_RANGE_ERROR, "can't convert %S into Float", self); + mrb_raisef(mrb, E_RANGE_ERROR, "can't convert %v into Float", self); } return mrb_int_value(mrb, p->real); } |
