Skip to content

Commit 0a6122c

Browse files
committed
Solve issue on cast.
1 parent 3bc6c1b commit 0a6122c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/serials/rapid_json_serial/source/rapid_json_serial_impl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ void rapid_json_serial_impl_serialize_value(value v, rapidjson::Value *json_v)
297297
static const char stacktrace_str[] = "stacktrace";
298298

299299
stacktrace_member.SetString(stacktrace_str, static_cast<rapidjson::SizeType>(sizeof(stacktrace_str) - 1));
300-
stacktrace_value.SetString(exception_stacktrace(ex), strlen(exception_stacktrace(ex)));
300+
stacktrace_value.SetString(exception_stacktrace(ex), static_cast<rapidjson::SizeType>(strlen(exception_stacktrace(ex))));
301301
json_map.AddMember(stacktrace_member, stacktrace_value, rapid_json_allocator);
302302
}
303303
else if (id == TYPE_THROWABLE)

0 commit comments

Comments
 (0)