From c1604cfc09a8cccbbd2bca27fc2a9dfb113f550e Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 22 Dec 2022 16:20:00 +0800 Subject: [PATCH] 1 --- f8/utils.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/f8/utils.h b/f8/utils.h index 4ac1423..bd0ba1f 100644 --- a/f8/utils.h +++ b/f8/utils.h @@ -83,7 +83,7 @@ namespace f8 break; case a8::reflect::ET_FLOAT: { - *((float*)p) = reader.GetValue(field.field_name); + *((float*)p) = reader.GetValue(field.field_name).GetDouble(); } break; case a8::reflect::ET_DOUBLE: @@ -101,6 +101,7 @@ namespace f8 abort(); } } + obj->__flags__.set(i); meta_list.push_back(obj); } }