From: SourceForge.net <no...@so...> - 2004-03-27 23:13:09
|
Bugs item #924654, was opened at 2004-03-28 00:13 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=924654&group_id=599 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Josef Pavlik (jetset) Assigned to: Nobody/Anonymous (nobody) Summary: wrong float to unsigned char conversion Initial Comment: hello, This bug appears during last month. The 2.4.0 does'nt have it. Compiling the following piece you get 2 different results with V2.4.0 and with the last version. #define QUARTZ 24000000 #define USCL_VALUE ((unsigned char)(QUARTZ/2.0/6000000-0.5)) unsigned char main() { return USCL_VALUE; } mov dpl,#0x01 00101$: ret SDCC : mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51/ds400/hc08 2.4.0 (Mar 27 2004) (UNIX) mov dpl,#0x02 00101$: ret SDCC : mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51/ds400/hc08 2.4.1 (Mar 27 2004) (UNIX) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=924654&group_id=599 |
From: SourceForge.net <no...@so...> - 2004-03-29 07:07:20
|
Bugs item #924654, was opened at 2004-03-28 00:13 Message generated for change (Comment added) made by bernhardheld You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=924654&group_id=599 Category: None Group: None >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Josef Pavlik (jetset) >Assigned to: Bernhard Held (bernhardheld) Summary: wrong float to unsigned char conversion Initial Comment: hello, This bug appears during last month. The 2.4.0 does'nt have it. Compiling the following piece you get 2 different results with V2.4.0 and with the last version. #define QUARTZ 24000000 #define USCL_VALUE ((unsigned char)(QUARTZ/2.0/6000000-0.5)) unsigned char main() { return USCL_VALUE; } mov dpl,#0x01 00101$: ret SDCC : mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51/ds400/hc08 2.4.0 (Mar 27 2004) (UNIX) mov dpl,#0x02 00101$: ret SDCC : mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51/ds400/hc08 2.4.1 (Mar 27 2004) (UNIX) ---------------------------------------------------------------------- >Comment By: Bernhard Held (bernhardheld) Date: 2004-03-29 09:07 Message: Logged In: YES user_id=203539 Fixed in src/SDCCast.c 1.233 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=924654&group_id=599 |