From: Braden M. <br...@us...> - 2007-03-15 22:07:34
|
Update of /cvsroot/openvrml/openvrml/src/openvrml-player In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv31844/src/openvrml-player Modified Files: player.cpp Log Message: Moved "data" pointer back outside the "for" loop. Index: player.cpp =================================================================== RCS file: /cvsroot/openvrml/openvrml/src/openvrml-player/player.cpp,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** player.cpp 15 Mar 2007 21:46:20 -0000 1.18 --- player.cpp 15 Mar 2007 22:07:29 -0000 1.19 *************** *** 787,792 **** command << "write " << ptrdiff_t(stream_data.handle()) << ' ' << size * nmemb << '\n'; ! for (const char * data = static_cast<char *>(ptr); ! data != static_cast<char *>(ptr) + size * nmemb; ++data) { command.put(*data); --- 787,792 ---- command << "write " << ptrdiff_t(stream_data.handle()) << ' ' << size * nmemb << '\n'; ! const char * data = static_cast<char *>(ptr); ! for (; data != static_cast<char *>(ptr) + size * nmemb; ++data) { command.put(*data); |