Core/Misc: Fix warnings

Fix warnings appearing with -Wstrict-aliasing flag.
This commit is contained in:
jackpoz
2013-12-28 17:24:43 +01:00
parent b854e5b696
commit 2a7f03039d
2 changed files with 2 additions and 2 deletions

View File

@@ -229,7 +229,7 @@ extern int main(int argc, char** argv)
{
CPU_ZERO(&mask);
sched_getaffinity(0, sizeof(mask), &mask);
TC_LOG_INFO("server.authserver", "Using processors (bitmask, hex): %x", *(uint32*)(&mask));
TC_LOG_INFO("server.authserver", "Using processors (bitmask, hex): %lx", *(__cpu_mask*)(&mask));
}
}