From cb0036daf5492bdab41c37ab15d827eb8eaf4b08 Mon Sep 17 00:00:00 2001 From: repr-man Date: Mon, 19 Jun 2023 09:45:40 -0500 Subject: [PATCH] Remove parens that stop compiler spec from passing --- src/IPAddress.Format.savi | 2 +- src/IPAddress.savi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/IPAddress.Format.savi b/src/IPAddress.Format.savi index cf91be2..60bd05d 100644 --- a/src/IPAddress.Format.savi +++ b/src/IPAddress.Format.savi @@ -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 | diff --git a/src/IPAddress.savi b/src/IPAddress.savi index 3d9a543..78b9857 100644 --- a/src/IPAddress.savi +++ b/src/IPAddress.savi @@ -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.