summaryrefslogtreecommitdiff
path: root/cfrontend/SimplExpr.v
diff options
context:
space:
mode:
Diffstat (limited to 'cfrontend/SimplExpr.v')
-rw-r--r--cfrontend/SimplExpr.v4
1 files changed, 2 insertions, 2 deletions
diff --git a/cfrontend/SimplExpr.v b/cfrontend/SimplExpr.v
index 01f304e..f9aa8db 100644
--- a/cfrontend/SimplExpr.v
+++ b/cfrontend/SimplExpr.v
@@ -139,8 +139,8 @@ Function makeif (a: expr) (s1 s2: statement) : statement :=
Definition transl_incrdecr (id: incr_or_decr) (a: expr) (ty: type) : expr :=
match id with
- | Incr => Ebinop Oadd a (Econst_int Int.one type_int32s) (typeconv ty)
- | Decr => Ebinop Osub a (Econst_int Int.one type_int32s) (typeconv ty)
+ | Incr => Ebinop Oadd a (Econst_int Int.one type_int32s) (incrdecr_type ty)
+ | Decr => Ebinop Osub a (Econst_int Int.one type_int32s) (incrdecr_type ty)
end.
(** Generate a [Sset] or [Sbuiltin] operation as appropriate