[fix] fix comparison operator for integer_subbyte (#1090)
This commit is contained in:
parent
90d3b0fb18
commit
14f69bddc8
@ -111,7 +111,7 @@ struct integer_subbyte
|
|||||||
if (sign_mask_ & storage) {
|
if (sign_mask_ & storage) {
|
||||||
return !(rhs.storage < storage);
|
return !(rhs.storage < storage);
|
||||||
} else {
|
} else {
|
||||||
return storage < rhs.storage;
|
return storage <= rhs.storage;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -139,7 +139,7 @@ struct integer_subbyte {
|
|||||||
return !(rhs.storage < storage);
|
return !(rhs.storage < storage);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return storage < rhs.storage;
|
return storage <= rhs.storage;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Less than
|
/// Less than
|
||||||
|
Loading…
Reference in New Issue
Block a user