Fixed data type on comparisons.

This commit is contained in:
barant 2025-01-09 09:04:17 -08:00
parent cfd996fe5a
commit 5fd02a7a44
2 changed files with 4 additions and 4 deletions

View File

@ -110,9 +110,9 @@ namespace coreutils {
return (strncmp(data, valuex.data, length) == 0); return (strncmp(data, valuex.data, length) == 0);
} }
bool ZString::operator!=(const ZString &valuex) const { bool ZString::operator!=(const ZString valuex) const {
// if(length != valuex.getLength()) if(length != valuex.getLength())
// return false; return true;
return (strncmp(data, valuex.data, length) != 0); return (strncmp(data, valuex.data, length) != 0);
} }

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) const; bool operator>=(const ZString &valuex) const;
bool operator==(const ZString valuex); bool operator==(const ZString valuex);
bool operator!=(const ZString &valuex) const; bool operator!=(const ZString valuex) const;
bool operator!=(const char *valuex) const; bool operator!=(const char *valuex) const;
/// ///