Fixed data type on comparisons.

This commit is contained in:
barant committed 2025-01-09 09:04:17 -08:00
1 parent cfd996fe5a
commit 5fd02a7a44
2 files changed
+4 -4

No files matched your search

+3 -3
View File
@@ -110,9 +110,9 @@ namespace coreutils {
return (strncmp(data, valuex.data, length) == 0);
}
bool ZString::operator!=(const ZString &valuex) const {
// if(length != valuex.getLength())
// return false;
bool ZString::operator!=(const ZString valuex) const {
if(length != valuex.getLength())
return true;
return (strncmp(data, valuex.data, length) != 0);
}
+1 -1
View File
@@ -115,7 +115,7 @@ namespace coreutils {
bool operator<=(const ZString &valuex) const;
bool operator>=(const ZString &valuex) const;
bool operator==(const ZString valuex);
bool operator!=(const ZString &valuex) const;
bool operator!=(const ZString valuex) const;
bool operator!=(const char *valuex) const;
///