Skip to content

Commit

Permalink
[hlc] Use uint64 instead of uint64_t for shift cast (#11721)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuxiaomao authored and kLabz committed Jul 18, 2024
1 parent d710be3 commit 636bc29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/generators/hl2c.ml
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,7 @@ let generate_function ctx f =
sexpr "%s = %s >> %s" (reg r) (reg a) (reg b)
| OUShr (r,a,b) ->
(match rtype r with
| HI64 -> sexpr "%s = ((uint64_t)%s) >> %s" (reg r) (reg a) (reg b)
| HI64 -> sexpr "%s = ((uint64)%s) >> %s" (reg r) (reg a) (reg b)
| _ -> sexpr "%s = ((unsigned)%s) >> %s" (reg r) (reg a) (reg b)
);
| OAnd (r,a,b) ->
Expand Down

0 comments on commit 636bc29

Please sign in to comment.