aboutsummaryrefslogtreecommitdiffstats
path: root/cfrontend/C2C.ml
diff options
context:
space:
mode:
Diffstat (limited to 'cfrontend/C2C.ml')
-rw-r--r--cfrontend/C2C.ml4
1 files changed, 2 insertions, 2 deletions
diff --git a/cfrontend/C2C.ml b/cfrontend/C2C.ml
index 43a18a52..1dbbc775 100644
--- a/cfrontend/C2C.ml
+++ b/cfrontend/C2C.ml
@@ -372,9 +372,9 @@ let make_builtin_memcpy args =
| Errors.OK(Vint n) -> n
| Errors.OK(Vlong n) -> n
| _ -> error "alignment argument of '__builtin_memcpy_aligned' must be a constant"; Integers.Int.one in
- if Integers.Int.is_power2 al1 = None then
+ if Integers.Int64.is_power2 al1 = None then
error "alignment argument of '__builtin_memcpy_aligned' must be a power of 2";
- if Integers.Int.modu sz1 al1 <> Integers.Int.zero then
+ if Integers.Int64.modu sz1 al1 <> Integers.Int.zero then
error "alignment argument of '__builtin_memcpy_aligned' must be a divisor of the size";
(* Issue #28: must decay array types to pointer types *)
Ebuiltin(EF_memcpy(sz1, al1),