aboutsummaryrefslogtreecommitdiffhomepage
path: root/sample/calc.cpp
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <[email protected]>2012-05-10 16:06:05 +0900
committerMITSUNARI Shigeo <[email protected]>2012-05-10 16:06:05 +0900
commit17a9cd71bea73e7c0d7ca04f3cdf363481f50c4c (patch)
treeffbdbe849a0452f504a2eab48455d60da08119c4 /sample/calc.cpp
parent0ed670f409edace0f65849f022313d5fa48957d2 (diff)
downloadxbyak-17a9cd71bea73e7c0d7ca04f3cdf363481f50c4c.tar.gz
xbyak-17a9cd71bea73e7c0d7ca04f3cdf363481f50c4c.zip
remove warning for gcc 4.7
Diffstat (limited to 'sample/calc.cpp')
-rw-r--r--sample/calc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/sample/calc.cpp b/sample/calc.cpp
index 826e23e..68e01a3 100644
--- a/sample/calc.cpp
+++ b/sample/calc.cpp
@@ -194,10 +194,10 @@ int main(int argc, char *argv[])
valTbl.resize(varTbl.size());
#ifdef XBYAK32
puts("32bit mode");
- void (*func)(double *ret, const double *valTbl) = (void (*)(double *, const double*))(void*)funcGen.getCode();
+ void (*func)(double *ret, const double *valTbl) = (void (*)(double *, const double*))(const void*)funcGen.getCode();
#else
puts("64bit mode");
- double (*func)(const double *valTbl) = (double (*)(const double*))(void*)funcGen.getCode();
+ double (*func)(const double *valTbl) = (double (*)(const double*))(const void*)funcGen.getCode();
#endif
for (int i = 0; i < 10; i++) {
for (size_t j = 0, n = valTbl.size(); j < n; j++) {