mbchar.c (local_mb_cur_max): Handle the case where MB_CUR_MAX is 0.
authorDave Brolley <brolley@cygnus.com>
Wed, 10 Feb 1999 11:00:12 +0000 (11:00 +0000)
committerDave Brolley <brolley@gcc.gnu.org>
Wed, 10 Feb 1999 11:00:12 +0000 (06:00 -0500)
Wed Feb 10 13:59:18 1999  Dave Brolley  <brolley@cygnus.com>
* mbchar.c (local_mb_cur_max): Handle the case where MB_CUR_MAX is 0.

From-SVN: r25129

gcc/ChangeLog
gcc/mbchar.c

index c567feb71eaddd56351580f58dbf21cbee7d5f6d..52839d07d118a1be24fd5abe85af3e506ea5bfe8 100644 (file)
@@ -1,3 +1,7 @@
+Wed Feb 10 13:59:18 1999  Dave Brolley  <brolley@cygnus.com>
+
+       * mbchar.c (local_mb_cur_max): Handle the case where MB_CUR_MAX is 0.
+
 Wed Feb 10 10:35:05 1999  Jim Wilson  <wilson@cygnus.com>
 
        * tmp-emsgids.c: Delete.
index 89604361cf28e0a7deae485f4afa9b63938d05ff..a22e52b56b32121b93a6df90a63d5cb604d2bd33 100644 (file)
@@ -281,7 +281,10 @@ local_mb_cur_max ()
 #ifdef CROSS_COMPILE
   return 1;
 #else
-  return MB_CUR_MAX;
+  if (MB_CUR_MAX > 0)
+    return MB_CUR_MAX;
+
+  return 1; /* default */
 #endif
 }
 #endif /* MULTIBYTE_CHARS */