From d14178be4c49c3ada44a9fe9efe11d444372ddab Mon Sep 17 00:00:00 2001 From: Anthony Green Date: Fri, 23 Jul 2010 09:14:00 -0400 Subject: FFI_LAST_ABI fix --- src/cris/ffi.c | 2 +- src/cris/ffitarget.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/cris') diff --git a/src/cris/ffi.c b/src/cris/ffi.c index e9c3953..f25d7b4 100644 --- a/src/cris/ffi.c +++ b/src/cris/ffi.c @@ -163,7 +163,7 @@ ffi_prep_cif (ffi_cif * cif, ffi_type **ptr; FFI_ASSERT (cif != NULL); - FFI_ASSERT ((abi > FFI_FIRST_ABI) && (abi <= FFI_DEFAULT_ABI)); + FFI_ASSERT (abi > FFI_FIRST_ABI && abi < FFI_LAST_ABI); cif->abi = abi; cif->arg_types = atypes; diff --git a/src/cris/ffitarget.h b/src/cris/ffitarget.h index 4257f10..0e3705d 100644 --- a/src/cris/ffitarget.h +++ b/src/cris/ffitarget.h @@ -34,8 +34,8 @@ typedef signed long ffi_sarg; typedef enum ffi_abi { FFI_FIRST_ABI = 0, FFI_SYSV, - FFI_DEFAULT_ABI = FFI_SYSV, - FFI_LAST_ABI = FFI_DEFAULT_ABI + 1 + FFI_LAST_ABI, + FFI_DEFAULT_ABI = FFI_SYSV } ffi_abi; #endif -- cgit v1.2.1