summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2023-05-04 06:44:22 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2023-05-04 06:44:22 (GMT)
commitcb008d57c8b1bfad27632a42f91a37637030ad96 (patch)
tree4f03a8a57f6aa64e56d513c59c987b29b28a3da9
parent32ef665a1f78d2950b72d78dea5665b07ff4f7b2 (diff)
downloadtcl-cb008d57c8b1bfad27632a42f91a37637030ad96.zip
tcl-cb008d57c8b1bfad27632a42f91a37637030ad96.tar.gz
tcl-cb008d57c8b1bfad27632a42f91a37637030ad96.tar.bz2
Some int -> Tcl_Size. Remove unnecessary knownBug constraint
-rw-r--r--generic/tclIO.c4
-rw-r--r--tests/utfext.test2
-rw-r--r--tests/winConsole.test2
3 files changed, 4 insertions, 4 deletions
diff --git a/generic/tclIO.c b/generic/tclIO.c
index e7e5b1b..c28a7f5 100644
--- a/generic/tclIO.c
+++ b/generic/tclIO.c
@@ -4645,7 +4645,7 @@ Tcl_GetsObj(
if (statePtr->encoding == GetBinaryEncoding()
&& ((statePtr->inputTranslation == TCL_TRANSLATE_LF)
|| (statePtr->inputTranslation == TCL_TRANSLATE_CR))
- && Tcl_GetByteArrayFromObj(objPtr, (size_t *)NULL) != NULL) {
+ && Tcl_GetByteArrayFromObj(objPtr, (Tcl_Size *)NULL) != NULL) {
return TclGetsObjBinary(chan, objPtr);
}
@@ -5986,7 +5986,7 @@ DoReadChars(
&& (statePtr->inEofChar == '\0');
if (appendFlag) {
- if (binaryMode && (NULL == Tcl_GetByteArrayFromObj(objPtr, (size_t *)NULL))) {
+ if (binaryMode && (NULL == Tcl_GetByteArrayFromObj(objPtr, (Tcl_Size *)NULL))) {
binaryMode = 0;
}
} else {
diff --git a/tests/utfext.test b/tests/utfext.test
index de26b6f..b980800 100644
--- a/tests/utfext.test
+++ b/tests/utfext.test
@@ -84,7 +84,7 @@ foreach {enc utfhex hex} $utfExtMap {
}
# Test for insufficient space
-test xx-bufferoverflow {buffer overflow Tcl_ExternalToUtf} -constraints knownBug -body {
+test xx-bufferoverflow {buffer overflow Tcl_ExternalToUtf} -body {
testencoding Tcl_UtfToExternal utf-16 A {start end} {} 1
} -result [list nospace {} \xFF]
diff --git a/tests/winConsole.test b/tests/winConsole.test
index 4eccf81..3104184 100644
--- a/tests/winConsole.test
+++ b/tests/winConsole.test
@@ -198,7 +198,7 @@ test console-fconfigure-get-1.0 {
Console get stdin configuration
} -constraints {win interactive} -body {
lsort [dict keys [fconfigure stdin]]
-} -result {-blocking -buffering -buffersize -encoding -eofchar -profile -inputmode -translation}
+} -result {-blocking -buffering -buffersize -encoding -eofchar -inputmode -profile -translation}
set testnum 0
foreach {opt result} {