From 2ea14ac83b6e754010b6f0931fb7d08252f7aa81 Mon Sep 17 00:00:00 2001 From: dibenedetto Date: Sat, 1 Dec 2007 18:09:14 +0000 Subject: [PATCH] Added cast to prevent pointer truncation warning/error messages. --- wrap/gl/glu_tesselator.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wrap/gl/glu_tesselator.h b/wrap/gl/glu_tesselator.h index 0a4089cc..00ecd10f 100644 --- a/wrap/gl/glu_tesselator.h +++ b/wrap/gl/glu_tesselator.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.3 2007/08/28 05:43:56 cignoni +Added ifdef needed for mac gcc compilation + Revision 1.2 2007/08/25 08:43:33 cignoni moved here callback def and added some needed opengl related casts @@ -204,7 +207,7 @@ class glu_tesselator static void CALLBACK vertex_cb(void * vertex_data, void * polygon_data) { tess_prim_data_vec * t_data = (tess_prim_data_vec *)polygon_data; - t_data->back().indices.push_back((int)vertex_data); + t_data->back().indices.push_back((int)((size_t)vertex_data)); } template