diff options
| author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-04-20 21:07:35 (GMT) |
|---|---|---|
| committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-04-20 21:07:35 (GMT) |
| commit | fc7ca4202ee105ad3bbd576d2a3bf2e5d5793825 (patch) | |
| tree | 3561954263de77d32ce0789a163288d614ed56fc /macosx/tclMacOSXFCmd.c | |
| parent | 68c30819addefd8b550722d6a18bd83908db371b (diff) | |
| download | tcl-fc7ca4202ee105ad3bbd576d2a3bf2e5d5793825.zip tcl-fc7ca4202ee105ad3bbd576d2a3bf2e5d5793825.tar.gz tcl-fc7ca4202ee105ad3bbd576d2a3bf2e5d5793825.tar.bz2 | |
Change a few variables from type "int" to "size_t". Always test TCL_UTF_MAX for <= 3 or > 3, because that's the only 2 flavours we really have.
Diffstat (limited to 'macosx/tclMacOSXFCmd.c')
| -rw-r--r-- | macosx/tclMacOSXFCmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/macosx/tclMacOSXFCmd.c b/macosx/tclMacOSXFCmd.c index 8dc3775..e00739a 100644 --- a/macosx/tclMacOSXFCmd.c +++ b/macosx/tclMacOSXFCmd.c @@ -693,7 +693,7 @@ UpdateStringOfOSType( Tcl_Obj *objPtr) /* OSType object whose string rep to * update. */ { - const int size = TCL_UTF_MAX * 4; + const size_t size = TCL_UTF_MAX * 4; char *dst = Tcl_InitStringRep(objPtr, NULL, size); OSType osType = (OSType) objPtr->internalRep.wideValue; int written = 0; |
