Fix ruby.cpp compilation on win64

develop
lethosor 2016-11-22 22:43:48 -05:00
parent 13eb5e702b
commit dd28079f30
1 changed files with 1 additions and 1 deletions

@ -596,7 +596,7 @@ static VALUE rb_dfget_rtti_classname(VALUE self, VALUE vptr)
#if defined(_WIN64) #if defined(_WIN64)
// win64 // win64
char *rtti = *(char**)(ptr - 0x8); char *rtti = *(char**)(ptr - 0x8);
char *typeinfo = Core::getInstance().p->getBase() + *(uint32_t*)(rtti + 0xC); char *typeinfo = (char*)Core::getInstance().p->getBase() + *(uint32_t*)(rtti + 0xC);
// skip the .?AV, trim @@ from end // skip the .?AV, trim @@ from end
return rb_str_new(typeinfo+0x14, strlen(typeinfo+0x14)-2); return rb_str_new(typeinfo+0x14, strlen(typeinfo+0x14)-2);
#elif defined(WIN32) #elif defined(WIN32)