summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/node.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/node.cc b/src/node.cc
index 4e9754f8f..47a7d5e5c 100644
--- a/src/node.cc
+++ b/src/node.cc
@@ -1528,15 +1528,15 @@ static gid_t gid_by_name(Handle<Value> value) {
static Handle<Value> GetUid(const Arguments& args) {
HandleScope scope;
- int uid = getuid();
- return scope.Close(Integer::New(uid));
+ uid_t uid = getuid();
+ return scope.Close(Integer::NewFromUnsigned(uid));
}
static Handle<Value> GetGid(const Arguments& args) {
HandleScope scope;
- int gid = getgid();
- return scope.Close(Integer::New(gid));
+ gid_t gid = getgid();
+ return scope.Close(Integer::NewFromUnsigned(gid));
}