Skip to content

Commit e761f5f

Browse files
committed
This should hopefully fix the build failure on kfreebsd-i386
Release/src/streams/fileio_posix.cpp:681:20: error: conversion to 'size_t {aka unsigned int}' from 'long long int' may alter its value [-Werror=conversion] fInfo->m_rdpos = newpos / char_size;
1 parent c7d85ee commit e761f5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Release/src/streams/fileio_posix.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ size_t _seekrdtoend_fsb(Concurrency::streams::details::_file_info *info, int64_t
560560

561561
if ( newpos == -1 ) return static_cast<size_t>(-1);
562562

563-
fInfo->m_rdpos = newpos / char_size;
563+
fInfo->m_rdpos = static_cast<size_t> (newpos) / char_size;
564564
return fInfo->m_rdpos;
565565
}
566566

0 commit comments

Comments
 (0)