fix warnings

This commit is contained in:
Steve Checkoway
2003-12-10 16:42:02 +00:00
parent 4f75f0e174
commit d5844e93c9
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -269,7 +269,7 @@ void PaneDisplay::SetContent( PaneContents c )
const CString metric = ITEM_COLOR(g_Contents[c].name, p);
CStringArray spec;
split( metric, ";", spec );
LOG->Trace("%i/%i, '%s', %i, max '%s'", p, num, metric.c_str(), spec.size(), spec[0].c_str() );
LOG->Trace("%i/%i, '%s', %zu, max '%s'", p, num, metric.c_str(), spec.size(), spec[0].c_str() );
if( spec.size() < 2 )
RageException::Throw( "Metric '%s' malformed", metric.c_str() );
const float n = (float) atof( spec[0] );
+1 -1
View File
@@ -1042,7 +1042,7 @@ bool RageDisplay_OGL::IsZWriteEnabled() const
bool RageDisplay_OGL::IsZTestEnabled() const
{
GLenum a;
glGetIntegerv( GL_DEPTH_FUNC, (int*)&a );
glGetIntegerv( GL_DEPTH_FUNC, (GLint*)&a );
return a != GL_ALWAYS;
}
@@ -278,7 +278,7 @@ int FFMpeg_Helper::DecodePacket()
{
if ( GetNextTimestamp )
{
if (pkt.pts != AV_NOPTS_VALUE)
if (pkt.pts != int(AV_NOPTS_VALUE))
pts = (float)pkt.pts * m_fctx->pts_num / m_fctx->pts_den;
else
pts = -1;