Skip to content

Commit ec90588

Browse files
committed
Fix a non-type template parameter type mismatch
This issues a warning in gcc7.
1 parent fcd263c commit ec90588

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/rapidjson/rapidjson.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ RAPIDJSON_NAMESPACE_END
413413
RAPIDJSON_NAMESPACE_BEGIN
414414
template <bool x> struct STATIC_ASSERTION_FAILURE;
415415
template <> struct STATIC_ASSERTION_FAILURE<true> { enum { value = 1 }; };
416-
template<int x> struct StaticAssertTest {};
416+
template <size_t x> struct StaticAssertTest {};
417417
RAPIDJSON_NAMESPACE_END
418418

419419
#define RAPIDJSON_JOIN(X, Y) RAPIDJSON_DO_JOIN(X, Y)

0 commit comments

Comments
 (0)