Re: [cc65] C question

Date view Thread view Subject view

From: Shawn Jefferson (sjefferson_at_sd62.bc.ca)
Date: 2002-12-13 01:05:23


>From: "Shawn Jefferson" <sjefferson_at_sd62.bc.ca> 
>> Sorry, I thought that posting that little bit was enough for someone to
>tell me if what I was doing is legal/correct in C.  I thought you could
>index from a pointer with [].  I'm using cc65 2.8.0, BTW.
>
>If you'd list just the code that defines 'bmp' and 'dat', we might be able
>to spot something.  And indexing a pointer with [] is perfectly legal.

I sent the code causing the problem to Ullrich.  In the process of cutting out bits that don't cause a problem, I found that it was the code directly after the code I posted that was causing the problem.  Ullrich says it was/is a known problem and is fixed now.

The problem was:

data |= mask;

and only failed with optimization.

Thanks for everyone's help!  I thought that the data I was getting out of my array was somehow corrupt, since my debugging printf was giving me some pretty strange values.

¯
Shawn



----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2002-12-13 01:05:52 CET