This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Two signed array indicies that Coverity spots should be unsigned.
authorNicholas Clark <nick@ccl4.org>
Tue, 9 May 2006 16:35:25 +0000 (16:35 +0000)
committerNicholas Clark <nick@ccl4.org>
Tue, 9 May 2006 16:35:25 +0000 (16:35 +0000)
p4raw-id: //depot/perl@28142

ext/POSIX/POSIX.xs

index 50f3a74..1774703 100644 (file)
@@ -732,7 +732,7 @@ getlflag(termios_ref)
 cc_t
 getcc(termios_ref, ccix)
        POSIX::Termios  termios_ref
-       int             ccix
+       unsigned int    ccix
     CODE:
 #ifdef I_TERMIOS /* References a termios structure member so ifdef it out. */
        if (ccix >= NCCS)
@@ -802,7 +802,7 @@ setlflag(termios_ref, lflag)
 void
 setcc(termios_ref, ccix, cc)
        POSIX::Termios  termios_ref
-       int             ccix
+       unsigned int    ccix
        cc_t            cc
     CODE:
 #ifdef I_TERMIOS /* References a termios structure member so ifdef it out. */