Skip to content

Commit

Permalink
Try unsigned long long
Browse files Browse the repository at this point in the history
  • Loading branch information
chfast committed Jul 16, 2020
1 parent d5b3cac commit 246fdf8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/fizzy/value.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ union Value
uint64_t i64;

Value() = default;
constexpr Value(uint64_t v) noexcept : i64{v} {}
constexpr Value(uint32_t v) noexcept : i64{v} {}
constexpr Value(unsigned int v) noexcept : i64{v} {}
constexpr Value(unsigned long v) noexcept : i64{v} {}
constexpr Value(unsigned long long v) noexcept : i64{v} {}
constexpr Value(int64_t v) noexcept : i64{static_cast<uint64_t>(v)} {}
constexpr Value(int32_t v) noexcept : i64{static_cast<uint32_t>(v)} {}

Expand Down

0 comments on commit 246fdf8

Please sign in to comment.