Commit a25761b6 authored by IOhannes m zmoelnig's avatar IOhannes m zmoelnig
Browse files

use "unsigned int" when possible

(shuts up MSVC)
parent 2139d693
......@@ -147,11 +147,11 @@ void multimodel :: open(const std::string&filename, int baseModel, int topModel,
if(loaders.size()!=numModels) {
/* outch, something went wrong! */
error("failed to load model#%d of %d (%s)...resetting to original models", i, numModels, newName);
for(i=0; i<loaders.size(); i++) {
if(loaders[i])
delete loaders[i];
loaders[i]=NULL;
unsigned int ui;
for(ui=0; ui<loaders.size(); ui++) {
if(loaders[ui])
delete loaders[ui];
loaders[ui]=NULL;
}
loaders.clear();
return;
......
......@@ -212,8 +212,8 @@ unsigned int pix_buffer :: numFrames( void )
// put an image into the buffer @ position <pos>
//
/////////////////////////////////////////////////////////
bool pix_buffer :: putMess(imageStruct*img,int pos){
if (pos<0 || pos>=m_numframes)return false;
bool pix_buffer :: putMess(imageStruct*img, unsigned int pos){
if (pos>=m_numframes)return false;
if(!img)return false;
img->copy2Image(m_buffer+pos);
return true;
......@@ -222,11 +222,11 @@ bool pix_buffer :: putMess(imageStruct*img,int pos){
// get an image from the buffer @ position <pos>
//
/////////////////////////////////////////////////////////
imageStruct*pix_buffer :: getMess(int pos){
imageStruct*pix_buffer :: getMess(unsigned int pos){
//post("getting frame: %d", pos);
if (pos<0 || pos>=m_numframes)return 0;
if (pos>=m_numframes)return 0;
/* just allocated but no image */
if(0==m_buffer[pos].format)
......
......@@ -50,8 +50,8 @@ class GEM_EXTERN pix_buffer : public CPPExtern
//////////
// Constructor
pix_buffer(t_symbol *s,t_float f);
virtual bool putMess(imageStruct*img,int pos);
virtual imageStruct* getMess(int pos);
virtual bool putMess(imageStruct*img,unsigned int pos);
virtual imageStruct* getMess(unsigned int pos);
virtual unsigned int numFrames(void);
//////////
......
Markdown is supported
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