summaryrefslogtreecommitdiff
path: root/file_io/win32
diff options
context:
space:
mode:
authorYann Ylavic <ylavic@apache.org>2020-04-30 09:16:51 +0000
committerYann Ylavic <ylavic@apache.org>2020-04-30 09:16:51 +0000
commit24555786a7c2d3cf96fb8cfdf63dd981c2744cea (patch)
tree6ee98e56de1827c8b468964fa5b1d3d1a9bf1e18 /file_io/win32
parent53fa8c368e9949dde4ee418a64886649eb5665d9 (diff)
downloadapr-24555786a7c2d3cf96fb8cfdf63dd981c2744cea.tar.gz
Merge r1856873 from trunk:
Address some warnings raised by MSVC-32/64. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1877195 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'file_io/win32')
-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) {