diff options
Diffstat (limited to 'src/common.h')
-rw-r--r-- | src/common.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common.h b/src/common.h index 33b2696c..4b0b0e4d 100644 --- a/src/common.h +++ b/src/common.h @@ -105,7 +105,7 @@ static const Index kInvalidIndex = ~0; static const Offset kInvalidOffset = ~0; template <typename Dst, typename Src> -Dst Bitcast(Src value) { +Dst Bitcast(Src&& value) { static_assert(sizeof(Src) == sizeof(Dst), "Bitcast sizes must match."); Dst result; memcpy(&result, &value, sizeof(result)); |