[FIXED] Int to Pointer in GFXLib

Find any bugs in Vega Strike? See if someone has already found it, or report them here!

[FIXED] Int to Pointer in GFXLib

Postby Itusa » Mon Mar 20, 2017 1:11 am

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 7:21 am, edited 1 time in total.
Operating System: (Linux) Ubuntu 16.10 (Yakkety)
Vegastrike-taose: 0.5.1
Itusa
Hunter
Hunter
 
Posts: 85
Topics: 25
Joined: Wed Jul 30, 2014 10:59 am

Share On:

Share on Facebook Facebook Share on Twitter Twitter Share on Digg Digg

Re: Int to Pointer in GFXLib

Postby TBeholder » Mon Mar 20, 2017 6:50 am

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
User avatar
TBeholder
Elite Venturer
Elite Venturer
 
Posts: 732
Topics: 38
Joined: Fri Apr 14, 2006 7:40 pm
Location: chthonic safety

Re: Int to Pointer in GFXLib

Postby Itusa » Mon Mar 20, 2017 3:18 pm

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
Topics: 25
Joined: Wed Jul 30, 2014 10:59 am

Re: Int to Pointer in GFXLib

Postby Itusa » Sat Mar 25, 2017 11:08 pm

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
Topics: 25
Joined: Wed Jul 30, 2014 10:59 am

Re: Int to Pointer in GFXLib

Postby Itusa » Sun Apr 09, 2017 7:21 am

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
Itusa
Hunter
Hunter
 
Posts: 85
Topics: 25
Joined: Wed Jul 30, 2014 10:59 am



Return to Bug Triage

Who is online

Users browsing this forum: No registered users and 1 guest

cron