summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixFCmd.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2018-12-12 20:14:19 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2018-12-12 20:14:19 (GMT)
commit12859211484cfae1ab06fb9e00aebecfeca9ec1e (patch)
treeae1b6847b057013742e00de29e2562fb8461530b /unix/tclUnixFCmd.c
parentc60e1a679dc096b076279e0ef80a82fe41223a51 (diff)
parent1961633531b70d5a6e627f86153f4d15e722ea8b (diff)
downloadtcl-12859211484cfae1ab06fb9e00aebecfeca9ec1e.zip
tcl-12859211484cfae1ab06fb9e00aebecfeca9ec1e.tar.gz
tcl-12859211484cfae1ab06fb9e00aebecfeca9ec1e.tar.bz2
Merge 8.7
Diffstat (limited to 'unix/tclUnixFCmd.c')
-rw-r--r--unix/tclUnixFCmd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/unix/tclUnixFCmd.c b/unix/tclUnixFCmd.c
index 7a79f3e..cb2ecdb 100644
--- a/unix/tclUnixFCmd.c
+++ b/unix/tclUnixFCmd.c
@@ -1369,7 +1369,7 @@ GetGroupAttribute(
groupPtr = TclpGetGrGid(statBuf.st_gid);
if (groupPtr == NULL) {
- *attributePtrPtr = Tcl_NewIntObj((int) statBuf.st_gid);
+ *attributePtrPtr = Tcl_NewWideIntObj(statBuf.st_gid);
} else {
Tcl_DString ds;
const char *utf;
@@ -1423,7 +1423,7 @@ GetOwnerAttribute(
pwPtr = TclpGetPwUid(statBuf.st_uid);
if (pwPtr == NULL) {
- *attributePtrPtr = Tcl_NewIntObj((int) statBuf.st_uid);
+ *attributePtrPtr = Tcl_NewWideIntObj(statBuf.st_uid);
} else {
Tcl_DString ds;
@@ -2340,8 +2340,8 @@ GetUnixFileAttributes(
return TCL_ERROR;
}
- *attributePtrPtr = Tcl_NewIntObj(
- (fileAttributes & attributeArray[objIndex]) != 0);
+ *attributePtrPtr = Tcl_NewBooleanObj(
+ fileAttributes & attributeArray[objIndex]);
return TCL_OK;
}