Skip to main content.
home | support | download

Back to List Archive

Re: Bug in swish-2.4.3 on spac64

From: J Robinson <jrobinson852(at)not-real.yahoo.com>
Date: Wed Jul 20 2005 - 13:27:50 GMT
--- Bill Moseley <moseley@hank.org> wrote:

[snip]

> > 159c176
> > <         i = *(unsigned long *) prop->propValue; 
> /* read binary */
> > ---
> > >         i =
> convPropValue2ULong(prop->propValue); /* read binary
> */
> 
> [snip]
> 
> I admit that I'm not 100% clear what the compiler
> should do when
> casting "unsigned char propValue[1]" to "unsigned
> long" -- always
> seems like a bit of magic to me. ;) [snip]

Hello Bill:

The line
  i = *(unsigned long *) prop->propValue;

is probably intended like

 i = * ( (unsigned long *) (prop->propValue) );

Which is to say, cast the (prop->propValue) pointer to
an (unsigned long*) and de-reference it to an unsigned
long.

jrobinson

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
Received on Wed Jul 20 06:28:08 2005