diff options
Diffstat (limited to 'src/glu/sgi/libnurbs/internals/bufpool.cc')
-rw-r--r-- | src/glu/sgi/libnurbs/internals/bufpool.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/glu/sgi/libnurbs/internals/bufpool.cc b/src/glu/sgi/libnurbs/internals/bufpool.cc index 4e4578fe924..d8d9c23db31 100644 --- a/src/glu/sgi/libnurbs/internals/bufpool.cc +++ b/src/glu/sgi/libnurbs/internals/bufpool.cc @@ -35,8 +35,8 @@ /* * bufpool.c++ * - * $Date: 2001/03/17 00:25:40 $ $Revision: 1.1 $ - * $Header: /home/krh/git/sync/mesa-cvs-repo/Mesa/src/glu/sgi/libnurbs/internals/bufpool.cc,v 1.1 2001/03/17 00:25:40 brianp Exp $ + * $Date: 2004/05/12 15:29:36 $ $Revision: 1.2 $ + * $Header: /home/krh/git/sync/mesa-cvs-repo/Mesa/src/glu/sgi/libnurbs/internals/bufpool.cc,v 1.2 2004/05/12 15:29:36 brianp Exp $ */ #include "glimports.h" @@ -50,7 +50,10 @@ */ Pool::Pool( int _buffersize, int initpoolsize, char *n ) { - buffersize= (_buffersize < sizeof(Buffer)) ? sizeof(Buffer) : _buffersize; + if((unsigned)_buffersize < sizeof(Buffer)) + buffersize = sizeof(Buffer); + else + buffersize = _buffersize; initsize = initpoolsize * buffersize; nextsize = initsize; name = n; |