 qtools/qregexp.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/qtools/qregexp.cpp b/qtools/qregexp.cpp
index fcc8f11..d958f0a 100644
--- a/qtools/qregexp.cpp
+++ b/qtools/qregexp.cpp
@@ -372,7 +372,7 @@ static bool matchcharclass( uint *rxd, char c )
     if ( clcode != CCL && clcode != CCN)
 	qWarning("QRegExp: Internal error, please report to qt-bugs@trolltech.com");
     uint numFields = *d & MVL;
-    uint cval = (uint)c; //(((uint)(c.row())) << 8) | ((uint)c.cell());
+    uint cval = (unsigned char)c; //(((uint)(c.row())) << 8) | ((uint)c.cell());
     bool found = FALSE;
     for ( int i = 0; i < (int)numFields; i++ ) {
 	d++;
