From 767edc78d7d5bb0bec37b945f0b2c6ff4c315d83 Mon Sep 17 00:00:00 2001 From: David Rose Date: Sat, 26 Mar 2005 02:30:07 +0000 Subject: [PATCH] build on windows --- panda/src/gobj/qpgeomVertexReader.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panda/src/gobj/qpgeomVertexReader.cxx b/panda/src/gobj/qpgeomVertexReader.cxx index a309988a53..3af3aecd37 100644 --- a/panda/src/gobj/qpgeomVertexReader.cxx +++ b/panda/src/gobj/qpgeomVertexReader.cxx @@ -384,7 +384,7 @@ get_data3f(const unsigned char *pointer) { // We sneakily cast a float[3] array to an LVecBase3f reference, // making all kinds of assumptions about how an LVecBase3f is // stored. - return (LVecBase3f &)(float *)pointer; + return *(LVecBase3f *)pointer; } ////////////////////////////////////////////////////////////////////