[cc65] Adding ints and longs

Date view Thread view Subject view

From: Maciej Witkowiak (ytm_at_elysium.pl)
Date: 2002-07-10 20:25:28


When trying to write NTP client for 6502 (where problem lays in converting
32-bit seconds to h:m,d/m/year format) I tried to use parts of glibc and
encountered this problem:

void foo (long int offset) {
int seconds;
  seconds+=offset;		// here I get internal compiler error
}

I know that adding long int to int can cause false result but the same line
written as:
  seconds = seconds + offset;
works.
Message from cc65 v2.8.0 is:
oursp != savsp (-4 != -2)

And the second thing - ld65 still reports its version as 2.4.0, it is probably
it still has own version.h in src/ld65 directory.

ytm

-- 
Our goal is to continue towards speedily generating our meta-vision and
embracing cross-media sub-relationships in order to remain profitable
in tommorrow's world.

Mr. Lucas Milner
----------------------------------------------------------------------
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-07-10 20:41:39 CEST