Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on build #23

Open
NegativeIQ opened this issue Oct 25, 2023 · 0 comments
Open

Error on build #23

NegativeIQ opened this issue Oct 25, 2023 · 0 comments

Comments

@NegativeIQ
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant