Re: [cc65] Possible Multi-Subscript Bug

From: Marc 'BlackJack' Rintsch <marc1rintsch.de>
Date: 2011-08-08 16:02:30
Hi Joseph,

> I am working on an example program for Hidden64 that requires
> multi-dimensional array.  When I try to get the address of an
> element of the array, I get cryptic error messages.

It would be helpful to show the messages — copied 1:1 from the terminal.  
And of course the source lines in question plus all relevant 
declarations.

> This happens in an argument to the memcpy() function and I believe
> elsewhere also.

Why don't you just try if it is connected to being an argument to the 
function or not?

> Using a single-subscript array and multiplying seems to work. 

Do you have declared the multi dimensional array as such *with explicit 
dimensions*?  Otherwise it is impossible for the compiler to determine 
the dimensions.

Ciao,
	Marc 'BlackJack' Rintsch
-- 
Reality is for people who can't cope with drugs.

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Mon Aug 8 16:03:33 2011

This archive was generated by hypermail 2.1.8 : 2011-08-08 16:03:36 CEST