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:
parent
c416dafc30
commit
792d1541a2
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=511817
13
emulators/rpcs3/files/patch-rpcs3_Emu_IdManager.h
Normal file
13
emulators/rpcs3/files/patch-rpcs3_Emu_IdManager.h
Normal 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");
|
Loading…
Reference in New Issue
Block a user