avoid stack overflow
[fw/sdcc] / support / regression / tests / longlit.c
index 857530c72eb21a082258b0b9b50986bf062f9893..033a731400976946808566b1d33037ffff6e1cf4 100644 (file)
@@ -1,9 +1,14 @@
+/* Testing arithmetics with long litterals
+ */
+
+#include <testfwk.h>
+
 #define OSCILLATOR 11059200
 #define BAUD 19200
 
 #define T1_RELOAD_VALUE -(2*OSCILLATOR)/(32*12*BAUD)
 
-char T1=T1_RELOAD_VALUE;
+unsigned char T1=T1_RELOAD_VALUE;
 
 void test (void) {
   ASSERT(T1==0xfd);