aboutsummaryrefslogtreecommitdiff
path: root/jim-posix.c
diff options
context:
space:
mode:
Diffstat (limited to 'jim-posix.c')
-rw-r--r--jim-posix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/jim-posix.c b/jim-posix.c
index a4eb069..7db78d4 100644
--- a/jim-posix.c
+++ b/jim-posix.c
@@ -54,7 +54,7 @@ static int Jim_PosixForkCommand(Jim_Interp *interp, int argc,
Jim_PosixSetError(interp);
return JIM_ERR;
}
- Jim_SetResult(interp, Jim_NewIntObj(interp, (jim_wide)pid));
+ Jim_SetResultInt(interp, (jim_wide)pid);
return JIM_OK;
#endif
}