#7 division by 0 in highlight.c

development
closed-fixed
Mark Edel
None
3
2001-02-25
2001-01-31
Anonymous
No

Sun workShop Compiler C 5.0 warning on highlight.c in Nedit 5.20 development version.

"highlight.c", line 1266: warning: division by 0

the line 1266 in highlight.c is:
--------------------------
if (pattern->subPatternRE == NULL) i = i / 0;
--------------------------

Discussion

1 2 > >> (Page 1 of 2)
  • Scott Tringali
    Scott Tringali
    2001-02-01

    I have a fix for this and will commit it.

     
  • Scott Tringali
    Scott Tringali
    2001-02-01

    • assigned_to: nobody --> tringali
     
  • Scott Tringali
    Scott Tringali
    2001-02-02

    • priority: 5 --> 3
     
  • Scott Tringali
    Scott Tringali
    2001-02-02

    • milestone: 100100 --> development
     
  • Scott Tringali
    Scott Tringali
    2001-02-02

    Group = development, as it's only in the 5.2 dev release.

     
  • Scott Tringali
    Scott Tringali
    2001-02-02

    Replaced divide by zero with a more propert assert.

     
  • Scott Tringali
    Scott Tringali
    2001-02-02

    • status: open --> open-fixed
     
  • Scott Tringali
    Scott Tringali
    2001-02-08

    Mark to remove assert if desired.

     
  • Scott Tringali
    Scott Tringali
    2001-02-08

    • assigned_to: tringali --> edel
     
  • Scott Tringali
    Scott Tringali
    2001-02-25

    Logged In: YES
    user_id=11321

    Mark has removed the assert.

     
1 2 > >> (Page 1 of 2)