#1419 Error 122: dividing by zero

closed-fixed
5
2013-05-25
2008-01-13
carlocol
No

While compiling a simple program involving floats I get:
Error 122: dividing by zero.

#sdcc -v
SDCC : mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51/ds400/hc08 2.7.4 #4
988 (Dec 31 2007) (MINGW32)

Compile command:
sdcc --code-loc 0x2200 --xram-loc 0x3000 floatprob.c

I am targetting an 8031 controller board.
Other simple programs work (with a few minor glitches).

The problem program is attached.

The error message is:
#sdcc --code-loc 0x2200 --xram-loc 0x3000 floatprob.c
floatprob.c:35: error 122: dividing by ZERO

Discussion

  • carlocol

    carlocol - 2008-01-13

    Simple program demonstrating compiler problem.

     
  • Borut Ražem

    Borut Ražem - 2008-01-13

    Logged In: YES
    user_id=568035
    Originator: NO

    Fixed in svn revision #4992.

    Borut

     
  • Borut Ražem

    Borut Ražem - 2008-01-13
    • milestone: --> fixed
    • assigned_to: nobody --> borutr
    • status: open --> open-fixed
     
  • Borut Ražem

    Borut Ražem - 2008-01-13
    • status: open-fixed --> closed-fixed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks