summaryrefslogtreecommitdiff
path: root/file_io
diff options
context:
space:
mode:
authorylavic <ylavic@13f79535-47bb-0310-9956-ffa450edef68>2019-04-03 13:54:46 +0000
committerylavic <ylavic@13f79535-47bb-0310-9956-ffa450edef68>2019-04-03 13:54:46 +0000
commit3b84cd846855a10f9f575da4c143d10a2b801fbb (patch)
tree35ec053ade05ffaf25bc760749289510953cec3d /file_io
parent1c85847eb5cca11d252a45a1325210717b501cd7 (diff)
downloadlibapr-3b84cd846855a10f9f575da4c143d10a2b801fbb.tar.gz
Address some warnings raised by MSVC-32/64.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1856873 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'file_io')
-rw-r--r--file_io/win32/seek.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/file_io/win32/seek.c b/file_io/win32/seek.c
index afe6edb00..dfef57716 100644
--- a/file_io/win32/seek.c
+++ b/file_io/win32/seek.c
@@ -170,7 +170,7 @@ APR_DECLARE(apr_status_t) apr_file_trunc(apr_file_t *thefile, apr_off_t offset)
thefile->bufpos = 0;
}
else if (offset < thefile->filePtr + (apr_off_t)thefile->bufpos) {
- thefile->bufpos = offset - thefile->filePtr;
+ thefile->bufpos = (apr_size_t)(offset - thefile->filePtr);
}
if (thefile->bufpos != 0) {