Re: [avr-gcc-list] Type casting from 32 bit to 64 bit ... doesnt seem to work

2005-06-12 Thread Victor A. Wagner Jr.
At 21:52 2005-06-11, intiha Ho gai wrote: hmm, So any comment as to why it might be happening to me? I am sure there is something else that i am missing that affects this, but let me give yout the exact code that i use, that is giving me incorrect results so that you can help me more. typedef

[avr-gcc-list] Type casting from 32 bit to 64 bit ... doesnt seem to work

2005-06-10 Thread intiha Ho gai
Hi, I dont know if this an avr-gcc issue, but it seems that if i am try to typecast variables in an array of uint32_t to uint64_T as follows: sumX += (uint64_t)array.x; (where sumX is an uint64_t var, while array.x is uint32_t), then this summation doesnt seem to work i.e. my summation values are

Re: [avr-gcc-list] Type casting from 32 bit to 64 bit ... doesnt seem to work

2005-06-10 Thread Dmitry K.
On Saturday 11 June 2005 03:16, intiha Ho gai wrote: Hi, I dont know if this an avr-gcc issue, but it seems that if i am try to typecast variables in an array of uint32_t to uint64_T as follows: sumX += (uint64_t)array.x; (where sumX is an uint64_t var, while array.x is uint32_t), then this