#208 fix the bug ID:3600361, NULL pcop

closed-fixed
None
5
2013-01-13
2013-01-11
feqin fan
No

this patch is to fix the bug(ID:3600361) - member be assigned a pointer value cause the NULLpcop.
in the attchment has three files: one patch file and other :
the changed file My_gen.c
the original source file from src/pic14/gen.c - version is 3.2.1

Discussion

  • feqin fan
    feqin fan
    2013-01-11

    • status: open --> open-fixed
     
  • feqin fan
    feqin fan
    2013-01-11

     
    Attachments
  • feqin fan
    feqin fan
    2013-01-11

    original source

     
    Attachments
  • feqin fan
    feqin fan
    2013-01-11

    patch fix the bug

     
    Attachments
  • Raphael Neider
    Raphael Neider
    2013-01-13

    Fixed in r8385.

    I used a different, more general approach to fix the bug. Anyway, thanks both for the report and the proposed fix.

     
  • Raphael Neider
    Raphael Neider
    2013-01-13

    • assigned_to: nobody --> tecodev
    • status: open-fixed --> closed-fixed
     
  • feqin fan
    feqin fan
    2013-01-14

    My pleasure..

    :-)

     
  • feqin fan
    feqin fan
    2013-01-14

    I have read the source r8385.
    line 6426: I think in the function emitpComment() one argument is lacked. It need 6 input but now only have 5.
    Humm, -_,-

     
  • Raphael Neider
    Raphael Neider
    2013-01-14

    You are right: I removed an argument but did not update the format string.
    Fixed in r8387.