From 058af9a9bed40b3c7c256b42b8cf70cd0a22625e Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Sun, 25 Dec 2022 15:10:38 +0800 Subject: [PATCH] 1 --- f8/utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: {