From 3b6c46b478813aee5135a1a9cd8db21a25db4b56 Mon Sep 17 00:00:00 2001 From: fins Date: Sat, 16 Mar 2013 23:47:58 +0100 Subject: [PATCH] fix crash in CCBReader::readFloat() --- extensions/CCBReader/CCBReader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/CCBReader/CCBReader.cpp b/extensions/CCBReader/CCBReader.cpp index d309f510be..65744ff8fb 100644 --- a/extensions/CCBReader/CCBReader.cpp +++ b/extensions/CCBReader/CCBReader.cpp @@ -512,7 +512,7 @@ float CCBReader::readFloat() { /* using a memcpy since the compiler isn't * doing the float ptr math correctly on device. * TODO still applies in C++ ? */ - float * pF = (float*)(this->mBytes + this->mCurrentByte); + unsigned char* pF = (this->mBytes + this->mCurrentByte); float f = 0; // N.B - in order to avoid an unaligned memory access crash on 'memcpy()' the the (void*) casts of the source and