fixed 64bit issue: replace unsigned with ::intptr_t
jmo [Thu, 23 Jul 2009 21:58:22 +0000 (21:58 +0000)]
git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1278 270642c3-0616-0410-b53a-bc976706d245

Scheduler/FIFORunner.cc

index 6c220d8..6ddd914 100644 (file)
@@ -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);
         }