summaryrefslogtreecommitdiff
path: root/src/utils/lookbib/lookbib.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/lookbib/lookbib.cc')
-rw-r--r--src/utils/lookbib/lookbib.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/lookbib/lookbib.cc b/src/utils/lookbib/lookbib.cc
index dc55ed93..103cd0b5 100644
--- a/src/utils/lookbib/lookbib.cc
+++ b/src/utils/lookbib/lookbib.cc
@@ -120,7 +120,7 @@ int main(int argc, char **argv)
int len;
int count;
for (count = 0; iter.next(&start, &len); count++) {
- if (fwrite(start, 1, len, stdout) != len)
+ if (fwrite(start, 1, len, stdout) != (size_t)len)
fatal("write error on stdout: %1", strerror(errno));
// Can happen for last reference in file.
if (start[len - 1] != '\n')