pspp-dev
[Top][All Lists]
Advanced

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

Re: a few warnings


From: Jason Stover
Subject: Re: a few warnings
Date: Sat, 15 Apr 2006 22:14:04 -0400
User-agent: Mutt/1.5.10i

On Sat, Apr 15, 2006 at 05:55:20PM -0700, Ben Pfaff wrote:
> I've been working to fix some of the warnings I get from the
> source tree right now.  Most of them have obvious fixes.  One I'm
> not sure about:
> 
> ../src/math/linreg/coefficient.c: In function 'pspp_linreg_coeff_get_value':
> ../src/math/linreg/coefficient.c:167: warning: comparison between pointer and 
> integer
> 
> This is for:
>   if (v->type == NULL)
> where `v' is of type `struct variable *'.  I don't understand
> what the `if' statement wants to test.

It's supposed to find the value of a categorical variable
that corresponds to that coefficient. The function should
return a NULL if v->type was numeric, indicating the coefficient
is not associated a single value. 

Fixed now.

-Jason




reply via email to

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