]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/unichar.h
fix comparison of BYTE variable with -1 after last commit
[wxWidgets.git] / include / wx / unichar.h
index 6ce07892156f3072b1f00cd7f10f1933340448ec..e2232d2817e1f8bc1ff620b56c5d31afd474727e 100644 (file)
@@ -141,18 +141,26 @@ private:
     // characters purely for performance reasons
     static value_type From8bit(char c)
     {
+#if wxUSE_UNICODE
         if ( (unsigned char)c < 0x80 )
             return c;
 
         return FromHi8bit(c);
+#else
+        return c;
+#endif
     }
 
     static char To8bit(value_type c)
     {
+#if wxUSE_UNICODE
         if ( c < 0x80 )
             return c;
 
         return ToHi8bit(c);
+#else
+        return c;
+#endif
     }
 
     // helpers of the functions above called to deal with non-ASCII chars