diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2012-05-20 06:09:31 -0700 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2012-05-20 06:09:31 -0700 |
| commit | ac31b58fe85363e6848cbbbdb6125cce1a2f6152 (patch) | |
| tree | 7dbd5269aa3694ae69da7774a9be5cbd0aef09eb /src/sprintf.c | |
| parent | 89865740e4bc7f496d1abb306cb8d8d5effefa39 (diff) | |
| parent | 606a1665c5cfff42622687d693b9362b6c1b663a (diff) | |
| download | mruby-ac31b58fe85363e6848cbbbdb6125cce1a2f6152.tar.gz mruby-ac31b58fe85363e6848cbbbdb6125cce1a2f6152.zip | |
Merge pull request #169 from mitchblank/cplusplus
Part 1 of C++ compilability
Diffstat (limited to 'src/sprintf.c')
| -rw-r--r-- | src/sprintf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sprintf.c b/src/sprintf.c index 12d96c92d..6a86a0d04 100644 --- a/src/sprintf.c +++ b/src/sprintf.c @@ -191,7 +191,7 @@ mrb_fix2binstr(mrb_state *mrb, mrb_value x, int base) } while (0) static mrb_value -get_hash(mrb_state *mrb, volatile mrb_value *hash, int argc, const mrb_value *argv) +get_hash(mrb_state *mrb, mrb_value *hash, int argc, const mrb_value *argv) { mrb_value tmp; @@ -497,7 +497,7 @@ mrb_str_format(mrb_state *mrb, int argc, const mrb_value *argv, mrb_value fmt) mrb_value nextvalue; mrb_value tmp; mrb_value str; - volatile mrb_value hash = mrb_undef_value(); + mrb_value hash = mrb_undef_value(); #define CHECK_FOR_WIDTH(f) \ if ((f) & FWIDTH) { \ @@ -772,7 +772,7 @@ format_s: case 'B': case 'u': { - volatile mrb_value val = GETARG(); + mrb_value val = GETARG(); char fbuf[32], nbuf[64], *s; const char *prefix = 0; int sign = 0, dots = 0; |
