Eigenstate: myrddin-dev mailing list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Allow intfmt to handle uint64s with {p=0,w=64,b=2}


Applied.

Context for those watching: this is an edge case that
we only hit when formatting 64 bit binary numbers; all
other common bases will fit into 32 bytes.

On Tue, 20 Mar 2018 16:22:10 -0400
"S. Gilles" <sgilles@xxxxxxxxxxxx> wrote:

> ---
>  lib/std/fmt.myr | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/lib/std/fmt.myr b/lib/std/fmt.myr
> index 8202ac94..c26d5c43 100644
> --- a/lib/std/fmt.myr
> +++ b/lib/std/fmt.myr
> @@ -539,7 +539,7 @@ const digitchars = "0123456789abcdef"
>  const intfmt = {sb, opts, signed, bits : uint64, nbits
>  	var isneg
>  	var sval, val
> -	var b : byte[32]
> +	var b : byte[64]
>  	var i, j, npad
>  	var base
>  
> -- 
> 2.16.2
> 
> 


-- 
Ori Bernstein <ori@xxxxxxxxxxxxxx>

References:
[PATCH] Allow intfmt to handle uint64s with {p=0,w=64,b=2}"S. Gilles" <sgilles@xxxxxxxxxxxx>