[gameprogrammer] Re: weir cast problem in 64 bits system

  • From: Robbert de Groot <zekaric@xxxxxxxx>
  • To: gameprogrammer@xxxxxxxxxxxxx
  • Date: Tue, 22 Jul 2008 11:09:42 -0400 (EDT)

Usually this 'loss of precision' is just a compiler 'warning' and not
an 'error'.  Maybe check the compiler flags to see if you are
treating warnings as errors or if you can 'ignore' certain compiler
warnings/errors.

--- Roger Durañona <luo_hei@xxxxxxxx> wrote:

> Im trying to use Cal3d in my project and I have found a weird
> problem. 
> Cal3d API returns some values as void*, that should be casted to
> GLint 
> like this:
> 
> glBindTexture(GL_TEXTURE_2D,
> (GLint)pCalRenderer->getMapUserData(0));
> 
> This works on some systems but in others the compiler produces an
> error: 
> cast from void* to GLint loses precision. The only common thing I
> can 
> find between the 2 setups where I get the error is that they are
> both 64 
> bits systems (Ubuntu and Gentoo).
> Can someboy suggest me a solution for this, or at least the cause
> of the 
> problem?
> 
> -- 
> "La naturaleza y sus leyes yacían ocultas en la noche, 
> Dios dijo , "Sea Newton" y todo fue luz", Alexander Pope
> "Pero esto no fue lo último. El diablo gritó "Sea Einstein", 
> y se restableció la situación", John Collins Squire
> 
> 
>               
> ______________________________________________ 
> LLama Gratis a cualquier PC del Mundo. 
> Llamadas a fijos y móviles desde 1 céntimo por minuto. 
> http://es.voice.yahoo.com
> 
> 
> ---------------------
> To unsubscribe go to http://gameprogrammer.com/mailinglist.html
> 
> 
> 


Robbert de Groot


      __________________________________________________________________
Get the name you've always wanted @ymail.com or @rocketmail.com! Go to 
http://ca.promos.yahoo.com/jacko/

---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html


Other related posts: