decrease warning for -pedantic

This commit is contained in:
MITSUNARI Shigeo 2013-01-12 18:03:39 +09:00
parent b8a31fd932
commit 921aa019ae
9 changed files with 41 additions and 29 deletions

View file

@ -27,7 +27,7 @@ struct Code : Xbyak::CodeGenerator {
inline int add(int a, int b)
{
return ((int (*)(int,int))(void*)buf)(a, b);
return Xbyak::CastTo<int (*)(int,int)>(buf)(a, b);
}
int main()