aboutsummaryrefslogtreecommitdiffstats
path: root/cparser/Cutil.ml
diff options
context:
space:
mode:
Diffstat (limited to 'cparser/Cutil.ml')
-rw-r--r--cparser/Cutil.ml3
1 files changed, 2 insertions, 1 deletions
diff --git a/cparser/Cutil.ml b/cparser/Cutil.ml
index f7405098..19a32a7e 100644
--- a/cparser/Cutil.ml
+++ b/cparser/Cutil.ml
@@ -950,7 +950,8 @@ let valid_cast env tfrom tto =
let int_pointer_conversion env tfrom tto =
match unroll env tfrom, unroll env tto with
- | (TInt _ | TEnum _),(TPtr _) -> true
+ | (TInt _ | TEnum _),(TPtr _)
+ | (TPtr _),(TInt _ | TEnum _) -> true
| _,_ -> false
(* Construct an integer constant *)