Skip to content

Commit 0d90602

Browse files
committed
utils - fix static_assert function to c++11 standard
1 parent 1f4b212 commit 0d90602

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ uint32_t htonf(float value)
112112
float float32;
113113
} helper;
114114

115-
static_assert(sizeof(uint32_t) == sizeof(float));
115+
static_assert(sizeof(uint32_t) == sizeof(float), "sizeof(uint32_t) != sizeof(float)");
116116

117117
helper.float32 = value;
118118
return htonl(helper.uint32);

0 commit comments

Comments
 (0)