Skip to content

Commit

Permalink
Address review comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmorgan committed Oct 23, 2024
1 parent 25dbc81 commit a95932a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkgs/dart_model/lib/src/json_buffer/typed_map.dart
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,8 @@ extension TypedMaps on JsonBufferBuilder {
if (bit) byte += bitmask;
bitmask <<= 1;

// On reaching bit 9 of `byte`, write the byte and reset `byte` and
// `bitmask`.
if (bitmask == 0x100) {
_setByte(valuePointer, byte);
byte = 0;
Expand Down

0 comments on commit a95932a

Please sign in to comment.