Commit e92b5718 authored by IOhannes m zmlnig (w32)'s avatar IOhannes m zmlnig (w32)
Browse files

minor fixes to shutup anal compilers

parent f59c9b23
......@@ -233,7 +233,7 @@ void gemvertexbuffer :: tableMess (VertexBuffer&vb, std::string name, int argc,
copyArray(tabname, vb, 1, offset*vb.stride);
} else if (argc == vb.stride || argc == (vb.stride+1)) {
if(argc>vb.stride) {
if(((unsigned int)argc)>vb.stride) {
if(A_FLOAT==argv[vb.stride].a_type)
offset=atom_getfloat(argv+vb.stride);
else
......@@ -379,7 +379,7 @@ void gemvertexbuffer :: copyArray(const std::string&tab_name, VertexBuffer&vb, u
else if (!garray_getfloatwords(a, &npoints, &vec))
error("%s: bad template for tabLink", tab_name.c_str());
else {
if(npoints>vb.size)
if(((unsigned int)npoints)>vb.size)
npoints=vb.size;
//~ printf("start copying %d values\n",npoints);
......
......@@ -233,7 +233,7 @@ void multimodel :: rescaleMess(bool state)
/////////////////////////////////////////////////////////
void multimodel :: render(GemState *state)
{
if (0==m_loaders.size() || m_curModel<0 || m_curModel>=m_loaders.size())
if (0==m_loaders.size() || m_curModel<0 || ((unsigned int)m_curModel)>=m_loaders.size())
return;
if (state && (m_currentH != state->texCoordX(2) || m_currentW != state->texCoordY(2))) {
......@@ -254,7 +254,7 @@ void multimodel :: render(GemState *state)
/////////////////////////////////////////////////////////
void multimodel :: changeModel(int modelNum)
{
if (modelNum < 0 || modelNum >= m_loaders.size()) {
if (modelNum < 0 || ((unsigned int)modelNum) >= m_loaders.size()) {
error("selection %d out of range: 0..%d", modelNum, m_loaders.size()-1);
return;
}
......
......@@ -410,7 +410,7 @@ void pix_record :: codecMess(t_atom *argv)
} else if (A_FLOAT==argv->a_type) {
int id=atom_getint(argv);
std::vector<std::string>codecs=m_handle->getCodecs();
if(id>0 && id<codecs.size())
if(id>0 && ((unsigned int)id)<codecs.size())
sid=codecs[id];
else {
error("invalid codec# %d (0..%d)", id, codecs.size());
......
......@@ -112,7 +112,7 @@ void pix_set :: postrender(GemState *state)
void pix_set :: DATAMess(t_symbol *s, int argc, t_atom *argv)
{
int picturesize, counter, n;
int i = 0, j;
int i = 0;
unsigned char *buffer;
pixBlock*pixels=m_pixels?m_pixels:&m_pixBlock;
......
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