Commit ca4a58f9f2085d2d0b9b5b658bd75cc8f8bc6ed8

brlcad 2010-05-12T16:24:45

pull in change from bzflag downstream, r20589 by brlcad, make sure our chars are all unsigned so we don't end up coercing a template instantiation to char where we start spitting out negative values.

diff --git a/src/FTUnicode.h b/src/FTUnicode.h
index 6c74100..e73ac21 100644
--- a/src/FTUnicode.h
+++ b/src/FTUnicode.h
@@ -148,7 +148,7 @@ private:
     const T* nextPos;
 
     // unicode magic numbers
-    static const char utf8bytes[256];
+    static const unsigned char utf8bytes[256];
     static const unsigned long offsetsFromUTF8[6];
     static const unsigned long highSurrogateStart;
     static const unsigned long highSurrogateEnd;
@@ -161,7 +161,7 @@ private:
 /* The first character in a UTF8 sequence indicates how many bytes
  * to read (among other things) */
 template <typename T>
-const char FTUnicodeStringItr<T>::utf8bytes[256] = {
+const unsigned char FTUnicodeStringItr<T>::utf8bytes[256] = {
   1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
   1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
   1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,