Int to Pointer in GFXLib

Find any bugs in Vega Strike? See if someone has already found it, or report them here!
Post Reply
Itusa
Hunter
Hunter
Posts: 85
Joined: Wed Jul 30, 2014 5:59 pm

Int to Pointer in GFXLib

Post by Itusa »

Code: Select all

src/gfxlib_struct.cpp 388: 
error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
                                 glindices.push_back( use_vbo ? (GLvoid*) (stride*offs)
Currently this does not affect the game compilation but, it is causing a warning and should be fixed. So far as I can tell it is because of the use of "GLvoid" itself, but switching around the function to replace void and then cast otherwise didn't go to plan. I would appreciate some assistance in this matter.

Here's a link to the source should anyone need further information.
Last edited by Itusa on Sun Apr 09, 2017 2:21 pm, edited 1 time in total.
Operating System: (Linux) Ubuntu 16.10 (Yakkety)
Vegastrike-taose: 0.5.1
TBeholder
Elite Venturer
Elite Venturer
Posts: 753
Joined: Sat Apr 15, 2006 2:40 am
Location: chthonic safety

Re: Int to Pointer in GFXLib

Post by TBeholder »

IDK, perhaps there's a way to avoid this cast?
Is this relevant? http://stackoverflow.com/questions/1423 ... -stdvector
"Two Eyes Good, Eleven Eyes Better." -Michele Carter
Itusa
Hunter
Hunter
Posts: 85
Joined: Wed Jul 30, 2014 5:59 pm

Re: Int to Pointer in GFXLib

Post by Itusa »

I like that idea I'll look into it. (When I get chance later, if you want to clone a source and try something yourself, feel free)
Operating System: (Linux) Ubuntu 16.10 (Yakkety)
Vegastrike-taose: 0.5.1
Itusa
Hunter
Hunter
Posts: 85
Joined: Wed Jul 30, 2014 5:59 pm

Re: Int to Pointer in GFXLib

Post by Itusa »

The problem still remains and it's kinda outta my depth unfortunately.
Operating System: (Linux) Ubuntu 16.10 (Yakkety)
Vegastrike-taose: 0.5.1
Itusa
Hunter
Hunter
Posts: 85
Joined: Wed Jul 30, 2014 5:59 pm

Re: Int to Pointer in GFXLib

Post by Itusa »

Just a heads up but we solved this:

https://github.com/Taose/Vegastrike-taose/issues/73
Operating System: (Linux) Ubuntu 16.10 (Yakkety)
Vegastrike-taose: 0.5.1
Post Reply