Selaa lähdekoodia

[macro] catch unexpected null type

Rudy Ges 1 vuosi sitten
vanhempi
commit
323d2c494e
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  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 =
 and decode_ctype t =
+	if t = vnull then raise Invalid_expr;
 	let (i,args),p = decode_enum_with_pos t in
 	let (i,args),p = decode_enum_with_pos t in
 	(match i,args with
 	(match i,args with
 	| 0, [p] ->
 	| 0, [p] ->