ttr: 32-bit rune fixes - plan9port - [fork] Plan 9 from user space
 (HTM) git clone git://src.adamsgaard.dk/plan9port
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 3e899d02030f6456d22060f929efb8260c9dd511
 (DIR) parent 2bde567347dddd3dc09d3eaf9185ee2c45e21c6b
 (HTM) Author: Russ Cox <rsc@swtch.com>
       Date:   Sun,  2 Jan 2011 18:42:25 -0500
       
       ttr: 32-bit rune fixes
       
       R=rsc
       http://codereview.appspot.com/3761044
       
       Diffstat:
         M src/cmd/tr.c                        |       6 +++---
       
       1 file changed, 3 insertions(+), 3 deletions(-)
       ---
 (DIR) diff --git a/src/cmd/tr.c b/src/cmd/tr.c
       t@@ -88,7 +88,7 @@ delete(void)
                                SETBIT(t, c);
                }
        
       -        last = 0x10000;
       +        last = Runemax+1;
                while (readrune(0, &c) > 0) {
                        if(!BITSET(f, c) && (c != last || !BITSET(t,c))) {
                                last = c;
       t@@ -128,7 +128,7 @@ complement(void)
                        else p[i] = i;
                }
                if (sflag){
       -                lastc = 0x10000;
       +                lastc = Runemax+1;
                        while (readrune(0, &from) > 0) {
                                if (from > high)
                                        from = to;
       t@@ -182,7 +182,7 @@ translit(void)
                        SETBIT(t,to);
                }
                if (sflag){
       -                lastc = 0x10000;
       +                lastc = Runemax+1;
                        while (readrune(0, &from) > 0) {
                                if (from <= high)
                                        from = p[from];