Skip to content

Commit

Permalink
Another one
Browse files Browse the repository at this point in the history
Signed-off-by: Juan Cruz Viotti <[email protected]>
  • Loading branch information
jviotti committed Feb 10, 2024
1 parent 81dd370 commit ae72ba0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/runtime/include/sourcemeta/jsonbinpack/runtime_encoder.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ class Encoder : private BasicEncoder<CharT, Traits> {
#endif
assert(is_byte(enum_maximum - enum_minimum));
this->put_byte(static_cast<std::uint8_t>(
static_cast<std::int64_t>(value / options.multiplier) - enum_minimum));
(value / static_cast<std::int64_t>(options.multiplier)) -
enum_minimum));
}

auto FLOOR_MULTIPLE_ENUM_VARINT(const sourcemeta::jsontoolkit::JSON &document,
Expand Down

0 comments on commit ae72ba0

Please sign in to comment.