[Top][All Lists]

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

Re: R: R: PSPP-BUG: bug report

From: Ben Pfaff
Subject: Re: R: R: PSPP-BUG: bug report
Date: Sun, 18 Nov 2007 17:09:22 -0800
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

"Gay" <address@hidden> writes:

> I migth have found a "bug" in pspp.
> As you may see in  pspp.log,  pspp reads and writes "provaLunga.sav"
> correctly but doesn't write "grade5.sav" correctly.
> They both are SPSS Windows 13 Sav files.
> Pspp is run on a linux slackware 12 personal computer.

Thank you for reporting this bug.  I have confirmed it and
devised a fix.  The fix has been checked into the PSPP CVS tree
already.  Here it is, if you wish to apply it to your source tree
without using CVS directly:

diff -u -p -r1.37 sys-file-writer.c
--- src/data/sys-file-writer.c  11 Nov 2007 05:51:41 -0000      1.37
+++ src/data/sys-file-writer.c  19 Nov 2007 01:05:37 -0000
@@ -421,7 +421,7 @@ write_variable (struct sfm_writer *w, co
   /* Number of missing values.  If there is a range, then the
      range counts as 2 missing values and causes the number to be
      negated. */
-  write_int (w, mv_has_range (mv) ? 2 - mv_n_values (mv) : mv_n_values (mv));
+  write_int (w, mv_has_range (mv) ? -2 - mv_n_values (mv) : mv_n_values (mv));
   /* Print and write formats. */
   write_format (w, *var_get_print_format (v), seg0_width);

"I admire him, I frankly confess it; and when his time comes
 I shall buy a piece of the rope for a keepsake."
--Mark Twain

reply via email to

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