Skip to content

Commit

Permalink
Merge pull request #8 from repr-man/main
Browse files Browse the repository at this point in the history
Remove parens that stop compiler spec from passing
  • Loading branch information
jemc authored Jun 21, 2023
2 parents 384c317 + cb0036d commit 8f5076d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/IPAddress.Format.savi
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
is_compressing_zeros = False
did_compress_zeros = False
@_value._v6_each_u16 -> (u16 |
if (u16 == 0 && !did_compress_zeros) (
if u16 == 0 && !did_compress_zeros (
case (
| is_compressing_zeros | next // go straight to the next u16
| previous_deferred_zero |
Expand Down
2 changes: 1 addition & 1 deletion src/IPAddress.savi
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
:fun is_v6: @_bits <= 0
:fun is_v4: @_bits > 0

:fun _v6_cidr_bits U8: if (@_bits == -128) (128 | @_bits.negate.u8)
:fun _v6_cidr_bits U8: if @_bits == -128 (128 | @_bits.negate.u8)
:fun _v4_cidr_bits U8: @_bits.u8.bit_shr(8).bit_and(0x3F)

// For IPv4, the raw bytes are kept in the low 32 bits of the IPv6 raw bytes.
Expand Down

0 comments on commit 8f5076d

Please sign in to comment.