Skip to content

Commit

Permalink
fixed DataView::operator == when comparing two empty strings
Browse files Browse the repository at this point in the history
  • Loading branch information
nem0 committed Sep 23, 2023
1 parent 15e70cc commit dde6cbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ofbx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ float DataView::toFloat() const

bool DataView::operator==(const char* rhs) const
{
if (!begin) return false;
if (!begin) return !rhs[0];
const char* c = rhs;
const char* c2 = (const char*)begin;
while (*c && c2 != (const char*)end)
Expand Down

0 comments on commit dde6cbe

Please sign in to comment.