[cc65] Type conversions

Date view Thread view Subject view

From: Shawn Jefferson (sjefferson_at_sd62.bc.ca)
Date: 2002-12-19 20:01:31


How do type conversions work in cc65?  What are the rules that the compiler follows when evaluating lines such as:

long size;

size = size * 1000;

or 

size = size % 10;


I've found that I've had to put (long) in a few places to get things working correctly with 2.9.0.  Is it good practice to always do this, or let the compiler decide for you?  With gcc, type conversions always seemed to be pretty transparent (to me.)

Advice is greatly appreciated!

¯
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-20 00:12:31 CET