Use ret|=1 instead of ++ret, to avoid possible overflow. (trunk r13383)
authorZac Medico <zmedico@gentoo.org>
Thu, 30 Apr 2009 07:23:16 +0000 (07:23 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 30 Apr 2009 07:23:16 +0000 (07:23 -0000)
svn path=/main/branches/2.1.6/; revision=13535

bin/ebuild-helpers/3/dodoc

index f8aeaf763bd2c91ff79b1c033b497a7b33c6bca5..4e7c934abeb478f208a951053b4c0628f24fe5cd 100644 (file)
@@ -42,7 +42,7 @@ for x in "$@" ; do
 
        elif [ ! -e "${x}" ] ; then
                echo "!!! ${0##*/}: $x does not exist" 1>&2
-               ((++ret))
+               ((ret|=1))
        fi
 
 done