summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2021-05-20 14:21:24 +0200
committerAlbert Astals Cid <tsdgeos@yahoo.es>2021-05-20 12:22:34 +0000
commit90bcd4967e82534f3c141c2c14cf292d6813bbd8 (patch)
tree03e01290ec4c8fb2d7ab2927f07f27ab15dc8417
parent45717a50c52ab13f405584eab4e1c586bd39a0ce (diff)
Cast to the actual type we're storing in
Fixes a warning in gcc 11
-rw-r--r--poppler/Form.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/poppler/Form.cc b/poppler/Form.cc
index b6488b59..3e084e4c 100644
--- a/poppler/Form.cc
+++ b/poppler/Form.cc
@@ -708,7 +708,7 @@ bool FormWidgetSignature::updateOffsets(FILE *f, Goffset objStart, Goffset objEn
return false;
}
- const size_t bufSize = static_cast<int>(objEnd - objStart);
+ const size_t bufSize = static_cast<size_t>(objEnd - objStart);
if (Gfseek(f, objStart, SEEK_SET) != 0) {
return false;
}