Skip to content

Commit 97e2f7f

Browse files
committed
Try fixing Error compilation Ubuntu 14.04 Tencent#834
1 parent 7f753fe commit 97e2f7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/rapidjson/schema.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -880,7 +880,7 @@ class Schema {
880880
#define RAPIDJSON_STRING_(name, ...) \
881881
static const ValueType& Get##name##String() {\
882882
static const Ch s[] = { __VA_ARGS__, '\0' };\
883-
static const ValueType v(s, sizeof(s) / sizeof(Ch) - 1);\
883+
static const ValueType v(s, static_cast<SizeType>(sizeof(s) / sizeof(Ch) - 1));\
884884
return v;\
885885
}
886886

0 commit comments

Comments
 (0)