summaryrefslogtreecommitdiffstats
path: root/generic/tclLiteral.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-02-27 08:34:05 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-02-27 08:34:05 (GMT)
commitf04b875d88bbe9cd4d2114d60c194be01a7c9e04 (patch)
tree34dde540a1ed936003a721aec62cf6ede6e5bfa2 /generic/tclLiteral.c
parent4fdbe79875a43efd9f42e75ccf256884f657dac3 (diff)
downloadtcl-f04b875d88bbe9cd4d2114d60c194be01a7c9e04.zip
tcl-f04b875d88bbe9cd4d2114d60c194be01a7c9e04.tar.gz
tcl-f04b875d88bbe9cd4d2114d60c194be01a7c9e04.tar.bz2
More use of (efficient) TclHasIntRep() macro. Also eliminate many (size_t) and (unsigned) type-casts, which don't make sense any more.
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 577c9e5..6df26bd 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
*/
@@ -424,7 +424,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);
}