markcwm / openb3d.mod

OpenB3D BlitzMax wrapper, see openb3d.docs for examples
18 stars 7 forks source link

Size_t overload warning #7

Closed HenriVi closed 6 years ago

HenriVi commented 6 years ago

Hi Mark,

compiling your mod for bmx-ng gives a warning in the title. As this might create some wondering for a new user.

You could edit the file stbimageloader.mod\stbimageloader.bmx , line 44 and change:

Local bufLen:Int = StreamSize(stream) 

to:

?bmxng
     Local bufLen:Size_T = StreamSize(stream)
?Not bmxng
     Local bufLen:Int = StreamSize(stream)
? 

-Henri

markcwm commented 6 years ago

Thanks Henri! Fix was added to the latest commit 434403d47aee3f52afa69c558424d14291bf7d67.