summaryrefslogtreecommitdiff
path: root/src/ia64
diff options
context:
space:
mode:
authorAnthony Green <green@moxielogic.com>2011-02-13 08:06:39 -0500
committerAnthony Green <green@moxielogic.com>2011-02-13 08:06:39 -0500
commit1fbf9dc44feea564e84ad7406d17c5d5906ce0e0 (patch)
treedaf736dd9baece9fa2b74ebba77afeb65796423c /src/ia64
parent90af15ef5c1614b76370c4d13954586fabf9e8e3 (diff)
downloadlibffi-1fbf9dc44feea564e84ad7406d17c5d5906ce0e0.tar.gz
Fix bad_abi test. rc5.
Diffstat (limited to 'src/ia64')
-rw-r--r--src/ia64/ffi.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/ia64/ffi.c b/src/ia64/ffi.c
index 84b1448..60120ed 100644
--- a/src/ia64/ffi.c
+++ b/src/ia64/ffi.c
@@ -1,7 +1,8 @@
/* -----------------------------------------------------------------------
- ffi.c - Copyright (c) 1998, 2007, 2008 Red Hat, Inc.
- Copyright (c) 2000 Hewlett Packard Company
-
+ ffi.c - Copyright (c) 2011 Anthony Green
+ Copyright (c) 2000 Hewlett Packard Company
+ Copyright (c) 1998, 2007, 2008 Red Hat, Inc.
+
IA64 Foreign Function Interface
Permission is hereby granted, free of charge, to any person obtaining
@@ -425,7 +426,8 @@ ffi_prep_closure_loc (ffi_closure* closure,
struct ffi_ia64_trampoline_struct *tramp;
struct ia64_fd *fd;
- FFI_ASSERT (cif->abi == FFI_UNIX);
+ if (cif->abi != FFI_UNIX)
+ return FFI_BAD_ABI;
tramp = (struct ffi_ia64_trampoline_struct *)closure->tramp;
fd = (struct ia64_fd *)(void *)ffi_closure_unix;