other/9398: Bug in ffi.h.in header file
theller@python.org
theller@python.org
Wed Jan 22 09:16:00 GMT 2003
>Number: 9398
>Category: other
>Synopsis: Bug in ffi.h.in header file
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Jan 22 08:36:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: theller@python.org
>Release: Current CVS (2003-01-22)
>Organization:
>Environment:
>Description:
There's a bug in gcc/libffi/include/ffi.h.in.
ffi_type_ulong and ffi_type_slong over redefined to wrong values here (they are defined before when SIZEOF_LONG == 4):
#if SIZEOF_LONG_LONG == 8
#define UINT64 unsigned long long
#define SINT64 long long
#define ffi_type_ulong ffi_type_uint64
#define ffi_type_slong ffi_type_sint64
#endif
>How-To-Repeat:
>Fix:
IMO it should read instead:
#if SIZEOF_LONG_LONG == 8
#define UINT64 unsigned long long
#define SINT64 long long
#define ffi_type_ulonglong ffi_type_uint64
#define ffi_type_slonglong ffi_type_sint64
#endif
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-bugs
mailing list