diff options
author | dgp <dgp@users.sourceforge.net> | 2016-10-18 19:16:35 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2016-10-18 19:16:35 (GMT) |
commit | 925bd5794ece33708050a4d1af75ecb118a7d6da (patch) | |
tree | 783c0bfb155d64b0b968a7e39d2fc6734cd4c25b /generic | |
parent | ae54e070a1abfeb5344f99623b55fc7515a56de8 (diff) | |
download | tcl-925bd5794ece33708050a4d1af75ecb118a7d6da.zip tcl-925bd5794ece33708050a4d1af75ecb118a7d6da.tar.gz tcl-925bd5794ece33708050a4d1af75ecb118a7d6da.tar.bz2 |
Use memcmp where possible.
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tclCmdMZ.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclCmdMZ.c b/generic/tclCmdMZ.c index 5479971..591e31c 100644 --- a/generic/tclCmdMZ.c +++ b/generic/tclCmdMZ.c @@ -1242,8 +1242,8 @@ StringFirstCmd( * Scan forward to find the first character. */ - if ((*p == *needleStr) && (TclUniCharNcmp(needleStr, p, - (unsigned long) needleLen) == 0)) { + if ((*p == *needleStr) && (memcmp(needleStr, p, + sizeof(Tcl_UniChar) * (size_t)needleLen) == 0)) { match = p - haystackStr; break; } |