diff options
Diffstat (limited to 'cfrontend')
-rw-r--r-- | cfrontend/C2C.ml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cfrontend/C2C.ml b/cfrontend/C2C.ml index d7b26322..92abac68 100644 --- a/cfrontend/C2C.ml +++ b/cfrontend/C2C.ml @@ -757,8 +757,8 @@ let rec convertExpr env e = | C.ECall({edesc = C.EVar {name = "__builtin_debug"}}, args) -> let (kind, args1) = match args with - | {edesc = C.EConst(CInt(n,_,_))} :: args1 -> (n, args1) - | _ -> error "argument 1 of '__builtin_debug' must be a constant"; (1L, args) in + | {edesc = C.EConst(CInt(n,_,_))} :: args1 when n <> 0L-> (n, args1) + | _ -> error "argument 1 of '__builtin_debug' must be a non-zero constant"; (1L, args) in let (text, args2) = match args1 with | {edesc = C.EConst(CStr(txt))} :: args2 -> (txt, args2) |