Skip to content

Commit 8c3ee86

Browse files
authored
Merge pull request #169 from CESNET/htonf_cpp_standard
utils - fix static_assert function to c++11 standard
2 parents ec76d45 + 0d90602 commit 8c3ee86

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)