summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
Diffstat (limited to 'process.c')
-rw-r--r--process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/process.c b/process.c
index 88fac00ac3c..31505c85782 100644
--- a/process.c
+++ b/process.c
@@ -657,7 +657,7 @@ rb_f_system(argc, argv)
Check_SafeStr(cmd);
state = system(RSTRING(cmd)->ptr);
- rb_last_status = INT2FIX(state);
+ rb_last_status = INT2FIX((state & 0xff) << 8);
if (state == 0) return Qtrue;
return Qfalse;