pspp-dev
[Top][All Lists]
Advanced

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

Re: uninitialized data in t-test-alpha.sh


From: John Darrington
Subject: Re: uninitialized data in t-test-alpha.sh
Date: Sun, 10 Dec 2006 11:35:19 +0900
User-agent: Mutt/1.5.4i

On Sat, Dec 09, 2006 at 06:01:21PM -0800, Ben Pfaff wrote:
     
     I'd discourage going down the road of comparing strings to
     SYSMIS, especially if they might be shorter than
     MAX_SHORT_STRING.  You could just get unlucky and be processing a
     string that happens to have the same bit pattern as SYSMIS.
     
     I'd check the variable type before making that comparison.

OK.  Done.  Henceforth I shall assume that string variables can never
be SYSMIS.

Incidently, while you're reforming variable.[ch], how about prefixing
the symbols NUMERIC and ALPHA with VAR_ ?

J'


-- 
PGP Public key ID: 1024D/2DE827B3 
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See http://pgp.mit.edu or any PGP keyserver for public key.


Attachment: pgpBiYkjYJbKh.pgp
Description: PGP signature


reply via email to

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