summaryrefslogtreecommitdiffstats
path: root/generic/tclLiteral.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-09-14 12:31:56 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-09-14 12:31:56 (GMT)
commit262b6297ea2f920b93647282240008fb6b77b0e9 (patch)
treef3efaa8264fe428fc1cc73603adc5d94fcd39462 /generic/tclLiteral.c
parentf0ec68f07293dac2b967d45a3697073b77688970 (diff)
downloadtcl-262b6297ea2f920b93647282240008fb6b77b0e9.zip
tcl-262b6297ea2f920b93647282240008fb6b77b0e9.tar.gz
tcl-262b6297ea2f920b93647282240008fb6b77b0e9.tar.bz2
Eliminate many "register" keywords (which do nothing with modern compilers)
Eliminate many unnecessary type-casts to (unsigned)
Diffstat (limited to 'generic/tclLiteral.c')
-rw-r--r--generic/tclLiteral.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclLiteral.c b/generic/tclLiteral.c
index 55473c1..35c54be 100644
--- a/generic/tclLiteral.c
+++ b/generic/tclLiteral.c
@@ -213,7 +213,7 @@ TclCreateLiteral(
if ((objLength == length) && ((length == 0)
|| ((objBytes[0] == bytes[0])
- && (memcmp(objBytes, bytes, (unsigned) length) == 0)))) {
+ && (memcmp(objBytes, bytes, length) == 0)))) {
/*
* A literal was found: return it
*/
@@ -418,7 +418,7 @@ TclRegisterLiteral(
objPtr = localPtr->objPtr;
if ((objPtr->length == length) && ((length == 0)
|| ((objPtr->bytes[0] == bytes[0])
- && (memcmp(objPtr->bytes, bytes, (unsigned) length) == 0)))) {
+ && (memcmp(objPtr->bytes, bytes, length) == 0)))) {
if ((flags & LITERAL_ON_HEAP)) {
ckfree(bytes);
}