diff --git a/f8/utils.h b/f8/utils.h index ddf2890..6d03d4f 100644 --- a/f8/utils.h +++ b/f8/utils.h @@ -32,7 +32,7 @@ namespace f8 if (field.subtype != a8::reflect::EST_SIMPLE) { abort(); } - void* p = (void*)obj + field.offset; + void* p = (char*)obj + field.offset; switch (field.type) { case a8::reflect::ET_INT32: {