| author | |
| committer | |
| log | 328eb8ed8dfdc646df28f899267c76e18645da40 |
| tree | 2f5e0cb482da5a0b2a328ee54cf5ec3c9519de54 |
| parent | 051620dcaf7df2f0dafb721a192dc5fb9f899987 |
Spotted thanks to UBSan1 files changed, 3 insertions(+), 3 deletions(-)
src/glibc.cpp+3-3| ... | ... | @@ -362,9 +362,9 @@ Error glibc_build_dummies_and_maps(CodeGen *g, const ZigGLibCAbi *glibc_abi, con |
| 362 | 362 | } |
| 363 | 363 | |
| 364 | 364 | uint32_t hash_glibc_target(const ZigTarget *x) { |
| 365 | return x->arch * 3250106448 + | |
| 366 | x->os * 542534372 + | |
| 367 | x->abi * 59162639; | |
| 365 | return x->arch * (uint32_t)3250106448 + | |
| 366 | x->os * (uint32_t)542534372 + | |
| 367 | x->abi * (uint32_t)59162639; | |
| 368 | 368 | } |
| 369 | 369 | |
| 370 | 370 | bool eql_glibc_target(const ZigTarget *a, const ZigTarget *b) { |