Fixed data type on comparisons.
This commit is contained in:
parent
cfd996fe5a
commit
5fd02a7a44
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
||||
///
|
||||
|
Loading…
x
Reference in New Issue
Block a user