[Gridflow-cvs] [svn] commit: r5924 - /trunk/src/classes2.cxx

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Tue Aug 3 18:49:23 EDT 2010


Author: matju
Date: Tue Aug  3 18:49:22 2010
New Revision: 5924

Log:
avoid warning on old gcc

Modified:
    trunk/src/classes2.cxx

Modified: trunk/src/classes2.cxx
==============================================================================
--- trunk/src/classes2.cxx (original)
+++ trunk/src/classes2.cxx Tue Aug  3 18:49:22 2010
@@ -666,7 +666,7 @@
 		t_symbol *key;
 		if (ascii.a_type==A_SYMBOL) key = ascii.a_symbol;
 		else {
-			int i = ascii.a_float;
+			int i = int(ascii.a_float);
 			key = (i<0 || i>=128 || !keyboard[i]) ? symprintf("%c",i) : keyboard[i];
 			if (!key) key = symprintf("whoah_%d",i);
 		}
@@ -1286,7 +1286,7 @@
 	int osx = int(m->gl_screenx2-m->gl_screenx1); // old size x
 	int osy = int(m->gl_screeny2-m->gl_screeny1); // old size y
 	m->gl_screenx2 = m->gl_screenx1 + 632;
-	if (m->gl_screeny2-m->gl_screeny1 < y) m->gl_screeny2 = m->gl_screeny1+y;
+	if (m->gl_screeny2-m->gl_screeny1 < int(y)) m->gl_screeny2 = m->gl_screeny1+int(y);
 	int  sx = int(m->gl_screenx2-m->gl_screenx1); // new size x
 	int  sy = int(m->gl_screeny2-m->gl_screeny1); // new size y
 	if (osx!=sx || osy!=sy) sys_vgui("wm geometry .x%lx %dx%d\n",long(m),sx,sy);



More information about the Gridflow-cvs mailing list