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 Jul 18, 2024
1 parent dd4eb9f commit b69856b
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 @@ -846,7 +846,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 b69856b

Please sign in to comment.