Skip to content
Snippets Groups Projects
Commit 16a91b62 authored by jmo's avatar jmo
Browse files

fixed 64bit issue: replace unsigned with ::intptr_t

parent 892e80e7
No related branches found
No related tags found
No related merge requests found
......@@ -35,6 +35,7 @@
#include "../Utils/ScopeExit.hh"
#include <execinfo.h>
#include "../config.hh"
#include <stdint.h>
//#include "FIFORunner.mpp"
#define prefix_
......@@ -255,7 +256,7 @@ prefix_ void senf::scheduler::detail::FIFORunner::watchdogError()
for (unsigned i (0); i < nEntries; ++i) {
write(1, " 0x", 3);
for (unsigned j (sizeof(void*)); j > 0; --j) {
unsigned v (unsigned(entries[i])>>(8*(j-1)));
::uintptr_t v( ::uintptr_t (entries[i])>>(8*(j-1)));
write(1, &(hex[ (v >> 4) & 0x0f ]), 1);
write(1, &(hex[ (v ) & 0x0f ]), 1);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment