Commit 9bfbe7a9 authored by Matthias Möller's avatar Matthias Möller
Browse files

using signed variable for openmp expression

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@17527 383ad7c9-94d9-4d36-a494-682f7c89f535
parent d31db92a
...@@ -229,7 +229,10 @@ bool SplatCloudObjectSelectionPlugin::splatCloudVolumeSelection( SplatCloud *_sp ...@@ -229,7 +229,10 @@ bool SplatCloudObjectSelectionPlugin::splatCloudVolumeSelection( SplatCloud *_sp
SplatCloud::Selection selection = !_deselection; SplatCloud::Selection selection = !_deselection;
unsigned int i, num = _splatCloud->numSplats(); int i, num = static_cast<int>(_splatCloud->numSplats());
#ifdef USE_OPENMP
#pragma omp parallel for
#endif
for( i=0; i<num; ++i ) for( i=0; i<num; ++i )
{ {
const SplatCloud::Position &pos = _splatCloud->positions( i ); const SplatCloud::Position &pos = _splatCloud->positions( i );
...@@ -291,10 +294,6 @@ void SplatCloudObjectSelectionPlugin::splatCloudColorizeSelection( SplatCloud *_ ...@@ -291,10 +294,6 @@ void SplatCloudObjectSelectionPlugin::splatCloudColorizeSelection( SplatCloud *_
SplatCloud::Color color( r, g, b ); // drop alpha SplatCloud::Color color( r, g, b ); // drop alpha
unsigned int i, num = _splatCloud->numSplats(); unsigned int i, num = _splatCloud->numSplats();
#ifdef USE_OPENMP
#pragma omp parallel for
#endif
for( i=0; i<num; ++i ) for( i=0; i<num; ++i )
{ {
if( _splatCloud->selections( i ) ) if( _splatCloud->selections( i ) )
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment