aboutsummaryrefslogtreecommitdiffhomepage
path: root/sample/test_util.cpp
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <[email protected]>2013-01-12 18:03:39 +0900
committerMITSUNARI Shigeo <[email protected]>2013-01-12 18:03:39 +0900
commit921aa019aecc7830b63c3ac4259efe6190eb2451 (patch)
tree3c29fa2ed689adbd5cdb293bbe3234e99ac27193 /sample/test_util.cpp
parentb8a31fd93245b400701ed186a2b998bed8972958 (diff)
downloadxbyak-921aa019aecc7830b63c3ac4259efe6190eb2451.tar.gz
xbyak-921aa019aecc7830b63c3ac4259efe6190eb2451.zip
decrease warning for -pedantic
Diffstat (limited to 'sample/test_util.cpp')
-rw-r--r--sample/test_util.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/sample/test_util.cpp b/sample/test_util.cpp
index fc969eb..7d526a5 100644
--- a/sample/test_util.cpp
+++ b/sample/test_util.cpp
@@ -50,7 +50,7 @@ void putCPUinfo()
if (cpu.has(Cpu::tPOPCNT)) {
const int n = 0x12345678; // bitcount = 13
const int ok = 13;
- int r = ((int (*)())((const void*)PopCountTest(n).getCode()))();
+ int r = PopCountTest(n).getCode<int (*)()>()();
if (r == ok) {
puts("popcnt ok");
} else {
@@ -71,7 +71,7 @@ struct EipTest : public Xbyak::CodeGenerator {
void putEip()
{
EipTest s;
- int (*getEip)() = (int(*)())(const void*)s.getCode();
+ int (*getEip)() = s.getCode<int(*)()>();
printf("eip=%08x\n", getEip());
}
#endif