|
From: | Paulo da Silva |
Subject: | [avr-gcc-list] Error with long type in avr-gcc |
Date: | Wed, 14 Jun 2006 10:28:25 -0300 |
Hi all
I am with the following problem, when I try to
compile my project I have the warnning listed below, the compiler says that I
have an integer overflow but I am using long type. I print the value and it is
wrong.
void
test()
{
unsigned long tt;
tt = 1023 * 100;
printf("temp = [%ld]\n",tt); }
Compiler warnning:
../a2d_read.c:39: warning: integer overflow in
_expression_
I am using:
IDE is AvrStudio4
avr-gcc-3.4.3
MCU is Atmega8
Please tell me what I am doing
wrong.
psilva
|
[Prev in Thread] | Current Thread | [Next in Thread] |