diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-07-02 08:20:47 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-07-02 09:34:17 +0200 |
commit | f2faf7acf4445fef2a149ebbdecb569a2d119d94 (patch) | |
tree | 6629ba211a70a54a0ab82f6c4f4de08504072951 /proto-ft/ftnoir_protocol_ft.cpp | |
parent | 66e75860d0c54baa39ed789442b09b96eeebe2e6 (diff) |
nothing important
Diffstat (limited to 'proto-ft/ftnoir_protocol_ft.cpp')
-rw-r--r-- | proto-ft/ftnoir_protocol_ft.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/proto-ft/ftnoir_protocol_ft.cpp b/proto-ft/ftnoir_protocol_ft.cpp index bf99a94f..7bc85afa 100644 --- a/proto-ft/ftnoir_protocol_ft.cpp +++ b/proto-ft/ftnoir_protocol_ft.cpp @@ -20,8 +20,8 @@ freetrack::~freetrack() dummyTrackIR.close(); } -static_assert(sizeof(LONG) == sizeof(std::int32_t), ""); -static_assert(sizeof(LONG) == 4u, ""); +static_assert(sizeof(LONG) == sizeof(std::int32_t)); +static_assert(sizeof(LONG) == 4u); static constexpr inline float d2r = float(M_PI/180); @@ -35,8 +35,8 @@ cc_noinline void store(float volatile& place, const float value) value_.f32 = value; - static_assert(sizeof(value_) == sizeof(float), ""); - static_assert(offsetof(decltype(value_), f32) == offsetof(decltype(value_), i32), ""); + static_assert(sizeof(value_) == sizeof(float)); + static_assert(offsetof(decltype(value_), f32) == offsetof(decltype(value_), i32)); (void)InterlockedExchange((LONG volatile*)&place, value_.i32); } @@ -44,7 +44,7 @@ cc_noinline void store(float volatile& place, const float value) template<typename t> cc_forceinline void store(t volatile& place, t value) { - static_assert(sizeof(t) == 4u, ""); + static_assert(sizeof(t) == 4u); (void)InterlockedExchange((LONG volatile*) &place, value); } |