diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-04-25 18:25:06 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-04-25 18:25:06 +0900 |
| commit | fa0e41a84d472de9e37ae8ad609e94a1ab905c53 (patch) | |
| tree | fa3d4e4c0699456a0950f422069a4c911db666f0 | |
| parent | 0aecb8a2bbe2595bc6261f1d08c256becfc53482 (diff) | |
| download | mruby-fa0e41a84d472de9e37ae8ad609e94a1ab905c53.tar.gz mruby-fa0e41a84d472de9e37ae8ad609e94a1ab905c53.zip | |
remove unnecessary local variable
| -rw-r--r-- | src/string.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/string.c b/src/string.c index 7ea6844a1..371d3faf6 100644 --- a/src/string.c +++ b/src/string.c @@ -2348,12 +2348,10 @@ mrb_str_dump(mrb_state *mrb, mrb_value str) *q++ = c; } else { - int oct = c & 0xff; - *q++ = '\\'; - q[2] = '0' + oct % 8; oct /= 8; - q[1] = '0' + oct % 8; oct /= 8; - q[0] = '0' + oct % 8; + q[2] = '0' + c % 8; c /= 8; + q[1] = '0' + c % 8; c /= 8; + q[0] = '0' + c % 8; q += 3; } } |
