Skip to content

Commit

Permalink
Fixed hbytes compare
Browse files Browse the repository at this point in the history
  • Loading branch information
onehundredfeet committed Mar 14, 2024
1 parent dc1a43d commit 9ee3003
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/generators/hl2c.ml
Original file line number Diff line number Diff line change
Expand Up @@ -744,6 +744,8 @@ let generate_function ctx f =
match rtype a, rtype b with
| (HUI8 | HUI16 | HI32 | HF32 | HF64 | HBool | HI64), (HUI8 | HUI16 | HI32 | HF32 | HF64 | HBool | HI64) ->
phys_compare()
| HBytes, HBytes ->
phys_compare()
| HType, HType ->
sexpr "if( hl_same_type(%s,%s) %s 0 ) {} else goto %s" (reg a) (reg b) (s_comp op) (label d)
| HNull t, HNull _ ->
Expand Down

0 comments on commit 9ee3003

Please sign in to comment.