Commit 2760f516 authored by Matthias Vallentin's avatar Matthias Vallentin

Perform minor cosmetic touch-ups

parent 0bcb5c9d
...@@ -137,7 +137,7 @@ public: ...@@ -137,7 +137,7 @@ public:
typename std::enable_if<std::is_floating_point<T>::value, error>::type typename std::enable_if<std::is_floating_point<T>::value, error>::type
apply(T& x) { apply(T& x) {
static constexpr auto tlindex = detail::tl_index_of<builtin_t, T>::value; static constexpr auto tlindex = detail::tl_index_of<builtin_t, T>::value;
static_assert(tlindex >= 0, "T not recognized as builtiln type"); static_assert(tlindex >= 0, "T not recognized as builtin type");
return apply_builtin(static_cast<builtin>(tlindex), &x); return apply_builtin(static_cast<builtin>(tlindex), &x);
} }
...@@ -153,7 +153,7 @@ public: ...@@ -153,7 +153,7 @@ public:
static_cast<int>(sizeof(T)) * (std::is_signed<T>::value ? -1 : 1) static_cast<int>(sizeof(T)) * (std::is_signed<T>::value ? -1 : 1)
>::type; >::type;
static constexpr auto tlindex = detail::tl_index_of<builtin_t, type>::value; static constexpr auto tlindex = detail::tl_index_of<builtin_t, type>::value;
static_assert(tlindex >= 0, "T not recognized as builtiln type"); static_assert(tlindex >= 0, "T not recognized as builtin type");
return apply_builtin(static_cast<builtin>(tlindex), &x); return apply_builtin(static_cast<builtin>(tlindex), &x);
} }
......
...@@ -105,7 +105,7 @@ protected: ...@@ -105,7 +105,7 @@ protected:
template <class T> template <class T>
error varbyte_decode(T& x) { error varbyte_decode(T& x) {
static_assert(std::is_unsigned<T>::value, "T must be an unsigned type"); static_assert(std::is_unsigned<T>::value, "T must be an unsigned type");
T n = 0; auto n = 0;
x = 0; x = 0;
uint8_t low7; uint8_t low7;
do { do {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment