Skip to content

Commit

Permalink
add HArray,HArray case to compare function
Browse files Browse the repository at this point in the history
  • Loading branch information
Simn authored and kLabz committed Mar 19, 2024
1 parent 00e2a93 commit 790656d
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 @@ -744,7 +744,7 @@ 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 ->
| HBytes, HBytes | HArray,HArray ->
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)
Expand Down

0 comments on commit 790656d

Please sign in to comment.