summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-04-10 12:02:17 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-04-10 12:02:17 (GMT)
commitfdc1bcf721aa672b0170af25adfe16a7650aab44 (patch)
tree2a417191d97b2ab352b4c631de37181ea18da9c2 /generic
parent78e3e645e087d6981615429ced74005fcaa89957 (diff)
downloadtcl-fdc1bcf721aa672b0170af25adfe16a7650aab44.zip
tcl-fdc1bcf721aa672b0170af25adfe16a7650aab44.tar.gz
tcl-fdc1bcf721aa672b0170af25adfe16a7650aab44.tar.bz2
Tcl_NewBooleanObj() is better here than Tcl_NewIntObj
Diffstat (limited to 'generic')
-rw-r--r--generic/tclMain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclMain.c b/generic/tclMain.c
index 3e89664..4f31924 100644
--- a/generic/tclMain.c
+++ b/generic/tclMain.c
@@ -361,7 +361,7 @@ Tcl_MainEx(
is.tty = isatty(0);
Tcl_SetVar2Ex(interp, "tcl_interactive", NULL,
- Tcl_NewIntObj(!path && is.tty), TCL_GLOBAL_ONLY);
+ Tcl_NewBooleanObj(!path && is.tty), TCL_GLOBAL_ONLY);
/*
* Invoke application-specific initialization.