]> git.lyx.org Git - lyx.git/commit
Fix a GCC warning: comparing signed vs. unsigned
authorScott Kostyshak <skostysh@lyx.org>
Tue, 20 May 2014 11:46:22 +0000 (07:46 -0400)
committerScott Kostyshak <skostysh@lyx.org>
Tue, 20 May 2014 12:01:49 +0000 (08:01 -0400)
commitfc19148f6dd60a1d925472cd86cb09ae0abdd35e
tree4ac4b11382c85d9685136e3b5f53f931b8193abf
parent275b7af75e5367c449d0f680d0965994c92d37d9
Fix a GCC warning: comparing signed vs. unsigned

This also changes the type of an int to an ssize_t.

nRead is initialized as an ssize_t because it could
be negative. It is cast to a size_t for comparison
to the size of a vector, but only after we check
that nRead is not negative.
src/support/filetools.cpp