From ac7af8eee537578ad1697239d3573ad2a0eb594c Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 23 Apr 2002 08:29:39 +0000 Subject: [PATCH] Fixed warning in swapBytes, simple addded unsigned to the int loop count, since sizeof() is always an unsigned int. --- src/Demos/osgcluster/osgcluster.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Demos/osgcluster/osgcluster.cpp b/src/Demos/osgcluster/osgcluster.cpp index 9a77d5684..0b1685cfc 100644 --- a/src/Demos/osgcluster/osgcluster.cpp +++ b/src/Demos/osgcluster/osgcluster.cpp @@ -30,7 +30,7 @@ inline void swapBytes( T &s ) BytePtr sptr = (BytePtr)&s; BytePtr dptr = &(((BytePtr)&d)[sizeof(T)-1]); - for( int i = 0; i < sizeof(T); i++ ) + for( unsigned int i = 0; i < sizeof(T); i++ ) *(sptr++) = *(dptr--); }