Date: Wed, 11 Sep 2019 11:47:01 +0000 (UTC) From: Jan Beich <jbeich@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r511817 - head/emulators/rpcs3/files Message-ID: <201909111147.x8BBl1mp005631@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jbeich Date: Wed Sep 11 11:47:01 2019 New Revision: 511817 URL: https://svnweb.freebsd.org/changeset/ports/511817 Log: emulators/rpcs3: unbreak WITH_DEBUG build ld: error: undefined symbol: id_manager::id_traits<sys_vm_t, void>::invalid >>> referenced by sys_vm.cpp:19 (rpcs3/Emu/Cell/lv2/sys_vm.cpp:19) >>> sys_vm.cpp.o:(sys_vm_t::~sys_vm_t()) in archive rpcs3/Emu/librpcs3_emu.a Added: head/emulators/rpcs3/files/patch-rpcs3_Emu_IdManager.h (contents, props changed) Added: head/emulators/rpcs3/files/patch-rpcs3_Emu_IdManager.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/emulators/rpcs3/files/patch-rpcs3_Emu_IdManager.h Wed Sep 11 11:47:01 2019 (r511817) @@ -0,0 +1,13 @@ +https://github.com/RPCS3/rpcs3/issues/6529 + +--- rpcs3/Emu/IdManager.h.orig 2019-09-09 16:16:02 UTC ++++ rpcs3/Emu/IdManager.h +@@ -30,7 +30,7 @@ namespace id_manager + static const u32 base = T::id_base; + static const u32 step = T::id_step; + static const u32 count = T::id_count; +- static const u32 invalid = base > 0 ? 0 : -1; ++ static constexpr u32 invalid = base > 0 ? 0 : -1; + + // Note: full 32 bits range cannot be used at current implementation + static_assert(count > 0 && step > 0 && u64{step} * count + base < u64{UINT32_MAX} + (base != 0 ? 1 : 0), "ID traits: invalid object range");
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201909111147.x8BBl1mp005631>