pspp-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PSPP is not 64 bit clean


From: Ben Pfaff
Subject: Re: PSPP is not 64 bit clean
Date: Fri, 09 Sep 2005 07:34:47 -0700
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux)

John Darrington <address@hidden> writes:

> On Thu, Sep 08, 2005 at 10:16:58PM -0700, Ben Pfaff wrote:
>      John Darrington <address@hidden> writes:
>      
>      > The good news is I've recently got my hands on a x86_64 box.  
>      >
>      > The bad news is that PSPP fails 40 out of 93 tests :(
>      
>      It's probably not hard to fix.  Have you tried?
>
> I'm working on it.  One of the problems is inappropriate use of size_t ---
> more specifically, assuming that sizeof(size_t) == sizeof(int).
>
> IMHO size_t should only  be used for things compatible with the sizeof() 
> operator.  Not for measuring the number of items in an array, which much
> of the PSPP code has done.

You'll have to give an example.  size_t should be fine for
counting items in an array.
-- 
"In the PARTIES partition there is a small section called the BEER.
 Prior to turning control over to the PARTIES partition,
 the BIOS must measure the BEER area into PCR[5]."
--TCPA PC Specific Implementation Specification




reply via email to

[Prev in Thread] Current Thread [Next in Thread]