Rebase
[platform/upstream/libffi.git] / src / x86 / ffi64.c
index 07a2627..340b8d0 100644 (file)
@@ -378,7 +378,7 @@ ffi_prep_cif_machdep (ffi_cif *cif)
          if (align < 8)
            align = 8;
 
-         bytes = ALIGN(bytes, align);
+         bytes = ALIGN (bytes, align);
          bytes += cif->arg_types[i]->size;
        }
       else
@@ -390,7 +390,7 @@ ffi_prep_cif_machdep (ffi_cif *cif)
   if (ssecount)
     flags |= 1 << 11;
   cif->flags = flags;
-  cif->bytes = bytes;
+  cif->bytes = ALIGN (bytes, 8);
 
   return FFI_OK;
 }