aboutsummaryrefslogtreecommitdiffstats
path: root/cparser
diff options
context:
space:
mode:
Diffstat (limited to 'cparser')
-rw-r--r--cparser/Elab.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/cparser/Elab.ml b/cparser/Elab.ml
index 76f8efdb..67b23d91 100644
--- a/cparser/Elab.ml
+++ b/cparser/Elab.ml
@@ -2361,7 +2361,7 @@ let rec elab_stmt env ctx s =
instead of the expected type@ %a"
Cprint.typ b.etyp Cprint.typ ctx.ctx_return_typ
else
- error loc
+ fatal_error loc
"return value has type@ %a@ \
instead of the expected type@ %a"
Cprint.typ b.etyp Cprint.typ ctx.ctx_return_typ