If you're porting code that assumes 32 bit ints then you probably want to 
change your compiler settings as Alan suggests. This is likely to cause 
problems if you're integrating it with code that assumes 16-bit ints. 

On Jul 15, 2010, at 5:57 PM, Alan Ingleby <alan.ingl...@gmail.com> wrote:

> As a quick fix, you may want to try int size = 4 bytes.  it defaults to 2.  
> look in settings.
> 
> All these issues you are having relate to basic C programming questions.  You 
> should google for a guide to C type conversions etc.
> 
> Alan
> 
> On 16 July 2010 06:38, codemaker <kala...@yahoo.com> wrote:
> Thank you all for your contribution. I still need your advice to figure this 
> out.
> I have to transfer a few thousand lines of code that works fine in other 
> compiler and I must fully understand the conversion.
> 
> 
> You use the L when you make any use of 32bit constants? (Even in the 
> initialization, and on 0)
> Same with doubles even they have fraction?
> 
>        double r = 0.0L;
>        double d = 0.0L;
>        double m=10L, h=10L, i;
> 
> 
> 
>        i = m + h / 24.0L;
>        i += 10L + h;
>        m = (i - 5544.5L) / 12225L;
> 
> 
> By the way I must have L on both variables.
> tmpY = 2008L * 367L; // (this one does not give the correct value -> 2008L * 
> 367)
> 
> 
> 
> --
> For information on using the ACCESS Developer Forums, or to unsubscribe, 
> please see http://www.access-company.com/developers/forums/
> 
> 
> 
> -- 
> Alan Ingleby
> -- 
> For information on using the ACCESS Developer Forums, or to unsubscribe, 
> please see http://www.access-company.com/developers/forums/

-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to