From 88b686facad0260db1defec728787cbba90e659d Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 12 Mar 2003 09:45:12 +0000 Subject: [PATCH] Added (unsigned int) cast to the call to osg::minimum. --- src/osgText/String.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgText/String.cpp b/src/osgText/String.cpp index 6b4103876..e966b3ee5 100644 --- a/src/osgText/String.cpp +++ b/src/osgText/String.cpp @@ -33,7 +33,7 @@ struct look_ahead_iterator look_ahead_iterator& operator += (int offset) { - if (_index<_string.length()) _index = osg::minimum(_index+offset,_string.length()); + if (_index<_string.length()) _index = osg::minimum((unsigned int)(_index+offset),(unsigned int)_string.length()); return *this; }