]> git.ozlabs.org Git - ccan/commit
bitops: fix -fsanitize=undefined warning:
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 9 Jan 2023 02:10:22 +0000 (12:40 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 16 Mar 2023 23:22:47 +0000 (09:52 +1030)
commite46957c87a57ff2efd0b23e230599cce529f1f92
tree26b73ed4e13166f3d45b861e77434a4d10989478
parente62e48b9d841dd7bac1955df177c2089eb4719b7
bitops: fix -fsanitize=undefined warning:

```
/home/rusty/devel/cvs/ccan/ccan/bitops/test/run.c:28:3: runtime error: left shift of 1 by 31 places cannot be represented in type 'int'

bitops: Module's run and api tests pass (tests_pass): FAIL (+1/2)
/home/rusty/devel/cvs/ccan/ccan/bitops/test/run.c:1..632
```

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ccan/bitops/test/run.c