Menu

#22 Cast in hcedit_w.c

v1.0_(example)
closed
nobody
None
1
2020-11-16
2020-04-02
No

.I had to add the cast ( TEDFONT * ) on the return from hb_xrealloc on lines 167 and 168 of hcedit_w.c:

  pted->pFontsScr = ( TEDFONT * ) hb_xrealloc( pted->pFontsScr, sizeof( TEDFONT ) * pted->iFonts );
  pted->pFontsPrn = ( TEDFONT * ) hb_xrealloc( pted->pFontsPrn, sizeof( TEDFONT ) * pted->iFonts );

Discussion

  • Wilfried Brunken

    Hello Alex,
    cast added, tested MingW/Windows 10 and MintLINUX. Committed r2823 .

    Please give feedback to Alexander Kresin, if ticket could be closed.
    With regards

    Wilfried, DF7BE

     
  • Alex Strickland

    Alex Strickland - 2020-05-03

    Hi

    I just tested with r2833, all compilation went smoothly. Please close.

    Regards
    Alex

     
  • Luiz Rafael Culik

    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,4 +1,4 @@
    -I had to add the cast ( TEDFONT * ) on the return from hb_xrealloc on lines 167 and 168 of hcedit_w.c:
    +.I had to add the cast ( TEDFONT * ) on the return from hb_xrealloc on lines 167 and 168 of hcedit_w.c:
    
           pted->pFontsScr = ( TEDFONT * ) hb_xrealloc( pted->pFontsScr, sizeof( TEDFONT ) * pted->iFonts );
           pted->pFontsPrn = ( TEDFONT * ) hb_xrealloc( pted->pFontsPrn, sizeof( TEDFONT ) * pted->iFonts );
    
    • status: open --> closed
     

Log in to post a comment.