Browse Source

[hlc] Fixed hbytes compare

Ryan Cleven 1 year ago
parent
commit
b9ba2bb617
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/generators/hl2c.ml

+ 2 - 0
src/generators/hl2c.ml

@@ -744,6 +744,8 @@ let generate_function ctx f =
 			match rtype a, rtype b with
 			match rtype a, rtype b with
 			| (HUI8 | HUI16 | HI32 | HF32 | HF64 | HBool | HI64), (HUI8 | HUI16 | HI32 | HF32 | HF64 | HBool | HI64) ->
 			| (HUI8 | HUI16 | HI32 | HF32 | HF64 | HBool | HI64), (HUI8 | HUI16 | HI32 | HF32 | HF64 | HBool | HI64) ->
 				phys_compare()
 				phys_compare()
+			| HBytes, HBytes ->
+				phys_compare()
 			| HType, HType ->
 			| HType, HType ->
 				sexpr "if( hl_same_type(%s,%s) %s 0 ) {} else goto %s" (reg a) (reg b) (s_comp op) (label d)
 				sexpr "if( hl_same_type(%s,%s) %s 0 ) {} else goto %s" (reg a) (reg b) (s_comp op) (label d)
 			| HNull t, HNull _ ->
 			| HNull t, HNull _ ->