aboutsummaryrefslogtreecommitdiff
path: root/utils/count
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-05-31 17:10:45 +0000
committerChris Lattner <sabre@nondot.org>2010-05-31 17:10:45 +0000
commitcaa3dcfc76aba84d8f5ff64aab467527c29d38fd (patch)
treebf403403ca595e1a09999f203b0b80f94e2b5d44 /utils/count
parentb6bd72ee7c426f066ffb6e80734cfe1bc43c2cce (diff)
revert r105223 which broke all my testing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105225 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/count')
-rw-r--r--utils/count/count.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/count/count.c b/utils/count/count.c
index 13250198b9..a37e1e0b25 100644
--- a/utils/count/count.c
+++ b/utils/count/count.c
@@ -26,7 +26,7 @@ int main(int argc, char **argv) {
}
NumLines = 0;
- while ((NumRead = fread(Buffer, 1, sizeof(Buffer), stdin)) == sizeof(Buffer)){
+ while ((NumRead = fread(Buffer, 1, sizeof(Buffer), stdin))) {
unsigned i;
for (i = 0; i != NumRead; ++i)