Explorar o código

[macro] catch unexpected null type

Rudy Ges hai 1 ano
pai
achega
323d2c494e
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/macro/macroApi.ml

+ 1 - 0
src/macro/macroApi.ml

@@ -846,6 +846,7 @@ and decode_field v =
 	}
 
 and decode_ctype t =
+	if t = vnull then raise Invalid_expr;
 	let (i,args),p = decode_enum_with_pos t in
 	(match i,args with
 	| 0, [p] ->