]> git.saurik.com Git - apple/libc.git/blobdiff - gen/getttyent.c
Libc-1244.1.7.tar.gz
[apple/libc.git] / gen / getttyent.c
index d40361429e776114065dc95e07f94490e6e8763a..25a1498483d3505b484b8697705a23a27aacfb16 100644 (file)
@@ -262,8 +262,8 @@ restart:
                goto restart;
 
        /* seq->first is already less than slot, so just leave it */
-       seq->count = e - b + 1;
-       seq->index = b;
+       seq->count = (int)(e - b + 1);
+       seq->index = (int)(b);
        /*
         * The fmt string contains the characters before the bracket, the
         * a format specifier (either decimal or hex) and any characters