diff options
Diffstat (limited to 'src/common/bit_field.h')
| -rw-r--r-- | src/common/bit_field.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/bit_field.h b/src/common/bit_field.h index dfd00d198..a39bb9886 100644 --- a/src/common/bit_field.h +++ b/src/common/bit_field.h | |||
| @@ -132,6 +132,11 @@ public: | |||
| 132 | 132 | ||
| 133 | __forceinline operator T() const | 133 | __forceinline operator T() const |
| 134 | { | 134 | { |
| 135 | return Value(); | ||
| 136 | } | ||
| 137 | |||
| 138 | __forceinline T Value() const | ||
| 139 | { | ||
| 135 | if (std::numeric_limits<T>::is_signed) | 140 | if (std::numeric_limits<T>::is_signed) |
| 136 | { | 141 | { |
| 137 | std::size_t shift = 8 * sizeof(T)-bits; | 142 | std::size_t shift = 8 * sizeof(T)-bits; |