diff options
Diffstat (limited to 'games/xmahjongg/patches/patch-ac')
-rw-r--r-- | games/xmahjongg/patches/patch-ac | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/games/xmahjongg/patches/patch-ac b/games/xmahjongg/patches/patch-ac index 565e772d9be..6c189076093 100644 --- a/games/xmahjongg/patches/patch-ac +++ b/games/xmahjongg/patches/patch-ac @@ -1,18 +1,18 @@ -$NetBSD: patch-ac,v 1.1 2006/11/05 18:46:58 rillig Exp $ +$NetBSD: patch-ac,v 1.2 2006/11/09 13:45:33 martin Exp $ SunPro sees an overloading ambiguity between operator bool() and -operator const char *(). +operator const char *(). ISO C++ and gcc 4.2 agree. --- permstr.cc.orig 2001-09-06 20:30:10.000000000 +0200 -+++ permstr.cc 2006-11-05 19:12:50.020399608 +0100 -@@ -183,8 +183,8 @@ PermString::static_initialize() ++++ permstr.cc 2006-11-09 14:35:55.000000000 +0100 +@@ -183,8 +183,8 @@ bool operator==(PermString a, const char *b) { - if (!a || !b) - return !a && !b; -+ if (a == false || !b) -+ return (a == false) && !b; ++ if (operator==(a, false) || !b) ++ return (operator==(a, false)) && !b; int l = strlen(b); return a.length() == l && memcmp(a.cc(), b, l) == 0; } |