Date: Mon, 11 Dec 2017 12:19:43 +0000 (UTC) From: Dmitry Marakasov <amdmi3@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r456025 - head/games/enigma/files Message-ID: <201712111219.vBBCJhVl025714@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: amdmi3 Date: Mon Dec 11 12:19:43 2017 New Revision: 456025 URL: https://svnweb.freebsd.org/changeset/ports/456025 Log: - Fix c++11 compatibility PR: 222403 Submitted by: rleigh@codelibre.net Added: head/games/enigma/files/patch-src_Value.cc (contents, props changed) head/games/enigma/files/patch-src_lev_Proxy.cc (contents, props changed) Added: head/games/enigma/files/patch-src_Value.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/enigma/files/patch-src_Value.cc Mon Dec 11 12:19:43 2017 (r456025) @@ -0,0 +1,15 @@ +--- src/Value.cc.orig 2017-09-03 15:39:37 UTC ++++ src/Value.cc +@@ -146,10 +146,10 @@ namespace enigma { + val.str[0] = 0; + break; + case BOOL : +- val.dval[0] = false; ++ val.dval[0] = 0; + break; + case OBJECT : +- val.dval[0] = (double) NULL; ++ val.dval[0] = 0; + break; + case NAMEDOBJECT: + ASSERT(false, XLevelRuntime, "Value: illegal type usage"); Added: head/games/enigma/files/patch-src_lev_Proxy.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/enigma/files/patch-src_lev_Proxy.cc Mon Dec 11 12:19:43 2017 (r456025) @@ -0,0 +1,11 @@ +--- src/lev/Proxy.cc.orig 2017-09-03 15:54:50 UTC ++++ src/lev/Proxy.cc +@@ -933,7 +933,7 @@ namespace enigma { namespace lev { + } else if (haveLocalCopy) { + // plain file + basic_ifstream<char> ifs(absExtPath.c_str(), ios::binary | ios::in); +- if (ifs != NULL) ++ if (ifs) + Readfile(ifs, extCode); + else + haveLocalCopy = false;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201712111219.vBBCJhVl025714>