harec

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit bf27ac0f7b6da2654948358111c8bac9341863c8
parent 371d77bfabe50949b4e0e5b253f7d9ead369e020
Author: Drew DeVault <sir@cmpwn.com>
Date:   Sun, 10 Jan 2021 15:15:37 -0500

04-strings: column length limit

Diffstat:
Mtests/04-strings.ha | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/04-strings.ha b/tests/04-strings.ha @@ -2,7 +2,9 @@ fn measurements() void = { const x = "Hello!"; assert(len(x) == 6z); assert(size(str) == size(*u8) + size(size) * 2z); - const align: size = if (size(*u8) > size(size)) size(*u8) else size(size); + const align: size = + if (size(*u8) > size(size)) size(*u8) + else size(size); assert(&x: uintptr: size % align == 0z); };