Fixed data type on comparisons.
This commit is contained in:
1 parent
cfd996fe5a
commit
5fd02a7a44
2 files changed
+4
-4
No files matched your search
+3
-3
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user