HomeFreeBSD

graphics/bgfx: fix build on powerpc64* and probably riscv64

Description

graphics/bgfx: fix build on powerpc64* and probably riscv64

/wrkdirs/usr/ports/graphics/bgfx/work/bgfx.cmake-1.118.8398-370/bimg/3rdparty/nvtt/nvcore/debug.h:173:10: error: cast from pointer to smaller type 'uint32' (aka 'unsigned int') loses information

if (reinterpret_cast<uint32>(ptr) == 0xcccccccc) return false;
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/wrkdirs/usr/ports/graphics/bgfx/work/bgfx.cmake-1.118.8398-370/bimg/3rdparty/nvtt/nvcore/debug.h:174:10: error: cast from pointer to smaller type 'uint32' (aka 'unsigned int') loses information

if (reinterpret_cast<uint32>(ptr) == 0xcdcdcdcd) return false;
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/wrkdirs/usr/ports/graphics/bgfx/work/bgfx.cmake-1.118.8398-370/bimg/3rdparty/nvtt/nvcore/debug.h:175:10: error: cast from pointer to smaller type 'uint32' (aka 'unsigned int') loses information

if (reinterpret_cast<uint32>(ptr) == 0xdddddddd) return false;
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/wrkdirs/usr/ports/graphics/bgfx/work/bgfx.cmake-1.118.8398-370/bimg/3rdparty/nvtt/nvcore/debug.h:176:10: error: cast from pointer to smaller type 'uint32' (aka 'unsigned int') loses information

if (reinterpret_cast<uint32>(ptr) == 0xffffffff) return false;
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Details

Provenance
pkubajAuthored on Feb 7 2023, 4:15 PM
Parents
R11:7f04ef6336dc: x11/swaync: switch d9ead0ea74a3 to upstream fix
Branches
Unknown
Tags
Unknown