Skip to content

Commit

Permalink
Work around GCC11 issue
Browse files Browse the repository at this point in the history
Found by the CI.
  • Loading branch information
Code7R committed Oct 4, 2024
1 parent 62ae9f4 commit 7e0bd21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/strtest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ static const char source[] = __FILE__;

#define equal(p, s) (mstring(p) == mstring(s))

#define expect(u, s) if (++testsrun, (u) == mstring(s) && equal(u, s)) \
#define expect(u, s) if (++testsrun, mstring(s).equals(u) && equal(u, s)) \
++passed; else test_failed(u, s, __LINE__)

// XXX: those argument ordering and purpose := strange.
Expand Down
2 changes: 1 addition & 1 deletion src/yicon.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ YIcon::YIcon(upath filename) :
loadedH(false), fCached(false), fPath(filename.expand())
{
// don't attempt to load if icon is disabled
if (fPath == "none" || fPath == "-")
if (fPath.equals("none") || fPath.equals("-"))
loadedS = loadedL = loadedH = true;
}

Expand Down

0 comments on commit 7e0bd21

Please sign in to comment.