Merge pull request #75 from joshtriplett/longdouble
authorAnthony Green <green@moxielogic.com>
Fri, 28 Feb 2014 05:50:25 +0000 (00:50 -0500)
committerAnthony Green <green@moxielogic.com>
Fri, 28 Feb 2014 05:50:25 +0000 (00:50 -0500)
Fix build error on x86 without distinct long double

1  2 
src/x86/ffi64.c

diff --cc src/x86/ffi64.c
@@@ -207,10 -208,11 +208,11 @@@ classify_argument (ffi_type *type, enu
        classes[0] = X86_64_X87_CLASS;
        classes[1] = X86_64_X87UP_CLASS;
        return 2;
+ #endif
      case FFI_TYPE_STRUCT:
        {
 -      const int UNITS_PER_WORD = 8;
 -      int words = (type->size + UNITS_PER_WORD - 1) / UNITS_PER_WORD;
 +      const size_t UNITS_PER_WORD = 8;
 +      size_t words = (type->size + UNITS_PER_WORD - 1) / UNITS_PER_WORD;
        ffi_type **ptr;
        int i;
        enum x86_64_reg_class subclasses[MAX_CLASSES];