diff options
| author | Mitchell Blank Jr <[email protected]> | 2012-05-19 23:44:43 -0700 |
|---|---|---|
| committer | Mitchell Blank Jr <[email protected]> | 2012-05-19 23:44:43 -0700 |
| commit | 8c752c73e21d9be1934a8440caa0481c35deb8ad (patch) | |
| tree | a3ce35a1a7e548b0a6146ef15cfa081e7078609c /src/sprintf.c | |
| parent | d9529f198d2aa46f1ce0d06f7ed8d709f7a82147 (diff) | |
| download | mruby-8c752c73e21d9be1934a8440caa0481c35deb8ad.tar.gz mruby-8c752c73e21d9be1934a8440caa0481c35deb8ad.zip | |
"volatile" no longer needed here
See Matz's comment here:
https://github.com/mruby/mruby/pull/144#issuecomment-5754054
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; |
