1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00

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
This commit is contained in:
Jan Beich 2019-09-11 11:47:01 +00:00
parent c416dafc30
commit 792d1541a2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=511817

View File

@ -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");