samp-log-core icon indicating copy to clipboard operation
samp-log-core copied to clipboard

Error on build

Open BitFros7y opened this issue 2 years ago • 0 comments

root@VPS23990:/home/samp-log-core# make
[ 15%] Built target fmt
[ 42%] Built target amx
Consolidate compiler generated dependencies of target log-core
[ 47%] Building CXX object src/CMakeFiles/log-core.dir/AmxDebugManager.cpp.o
/home/samp-log-core/src/AmxDebugManager.cpp: In member function 'bool AmxDebugManager::GetFunctionCallTrace(AMX*, std::vector<samplog::AmxFuncCallInfo>&)':
/home/samp-log-core/src/AmxDebugManager.cpp:182:20: error: cast from 'unsigned char*' to 'cell' {aka 'int'} loses precision [-fpermissive]
  182 |         cell dat = reinterpret_cast<cell>(amx->base + base->dat);
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [src/CMakeFiles/log-core.dir/build.make:90: src/CMakeFiles/log-core.dir/AmxDebugManager.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:160: src/CMakeFiles/log-core.dir/all] Error 2
make: *** [Makefile:156: all] Error 2

BitFros7y avatar Oct 25 '23 21:10 BitFros7y