EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Warning when initializing a long variable
From: "Schoeneburg, Bernd" <[email protected]>
To: [email protected]
Date: Tue, 21 Apr 2009 22:10:52 +0200
Hi all,
when I try to initalize a long variable with the most negative value of -2147483648 which should be 0xFFFFFFFF, then I get a compiler warning. The compiler is gcc version 3.4.5 running on solaris.

long test_var = -2147483648L;
....
../devPbdp.c:80: warning: decimal constant is so large that it is unsigned

-2147483647 is accepted. This problem exists only with long. char and short can be initialized to the most negative values without any problem.

Any idea? Thank you....

- Bernd

Navigate by Date:
Prev: Re: Failing EPICS Test Harness on RTEMS-mvme5500 Kate Feng
Next: Re: Warning when initializing a long variable Bob Soliday
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Failing EPICS Test Harness on RTEMS-mvme5500 Kate Feng
Next: Re: Warning when initializing a long variable Bob Soliday
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 31 Jan 2014 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·