Skip to content

script-fu ftx fix warnings

../plug-ins/script-fu/libscriptfu/ftx/ftx.c:180:36: warning: cast to smaller integer type 'long' from 'GDir *' (aka 'struct _GDir *') [-Wpointer-to-int-cast]
  180 |   return (sc->vptr->mk_integer(sc, (long) dir));
      |                                    ^~~~~~~~~~
../plug-ins/script-fu/libscriptfu/ftx/ftx.c:196:9: warning: cast to 'GDir *' (aka 'struct _GDir *') from smaller integer type 'long' [-Wint-to-pointer-cast]
  196 |   dir = (GDir *) sc->vptr->ivalue(first_arg);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../plug-ins/script-fu/libscriptfu/ftx/ftx.c:220:9: warning: cast to 'GDir *' (aka 'struct _GDir *') from smaller integer type 'long' [-Wint-to-pointer-cast]
  220 |   dir = (GDir *) sc->vptr->ivalue(first_arg);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../plug-ins/script-fu/libscriptfu/ftx/ftx.c:240:9: warning: cast to 'GDir *' (aka 'struct _GDir *') from smaller integer type 'long' [-Wint-to-pointer-cast]
  240 |   dir = (GDir *) sc->vptr->ivalue(first_arg);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Edited by lillolollo

Merge request reports

Loading