Re: bigint tests
[Thread Prev] | [Thread Next]
- Subject: Re: bigint tests
- From: ori@xxxxxxxxxxxxxx
- Reply-to: myrddin-dev@xxxxxxxxxxxxxx
- Date: Sat, 13 Jul 2019 18:38:30 -0700
- To: tankf33der@xxxxxxxxxxx, ori@xxxxxxxxxxxxxx
- Cc: myrddin-dev@xxxxxxxxxxxxxx
> hi, > > I've implement my bigtest tests for myrddin. > Found one crash so far. > > use std > const main = { > var a = std.get(std.bigparse("1111")) > std.bigshri(a,63) > std.put("{}\n", a) > } > > Code above returns 0, if std.bigshri(a,64) crash: > > 0x00000000004012fc: out of bounds access > Aborted > > Problem in bigshri(): > /* blit over the base values */ > for var i = 0; i < a.dig.len - off; i++ > -> a.dig[i] = a.dig[i + off] > ;; > a.dig = a.dig[:a.dig.len - off] > > > > (mike) Also fixed. Thanks!
Re: bigint tests | "Mike" <tankf33der@xxxxxxxxxxx> |
- Prev by Date: Re: bigparse memleak
- Next by Date: Re: bigint tests
- Previous by thread: Re: bigparse memleak
- Next by thread: Re: bigint tests
- Index(es):