Minimize unneeded casts

This commit is contained in:
gingerBill committed 2021-03-03 14:31:17 +00:00
1 parent 75f127af7c
commit b727b6438b
24 files changed
+108 -109

No files matched your search

+1 -2
View File
@@ -263,8 +263,7 @@ align_formula :: proc(size, align: int) -> int {
}
calc_padding_with_header :: proc(ptr: uintptr, align: uintptr, header_size: int) -> int {
p := uintptr(ptr);
a := uintptr(align);
p, a := ptr, align;
modulo := p & (a-1);
padding := uintptr(0);