From ed6dfed2a02cef245d8c8e5a3613ba71eecd8896 Mon Sep 17 00:00:00 2001 From: Jonathan Schleifer Date: Sat, 7 Nov 2015 18:16:40 +0100 Subject: [PATCH] Fix a type mismatch for std::min() --- src/system/boot/loader/file_systems/fat/Stream.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/system/boot/loader/file_systems/fat/Stream.cpp b/src/system/boot/loader/file_systems/fat/Stream.cpp index 3ed255f656..c8fc4ada49 100644 --- a/src/system/boot/loader/file_systems/fat/Stream.cpp +++ b/src/system/boot/loader/file_systems/fat/Stream.cpp @@ -386,7 +386,8 @@ Stream::WriteAt(off_t pos, const void* _buffer, size_t* _length, size_t inBlockOffset = offset % fVolume.BlockSize(); // write - size_t toWrite = std::min(fVolume.BlockSize() - inBlockOffset, length); + size_t toWrite = std::min((size_t)fVolume.BlockSize() - inBlockOffset, + length); if (toWrite == (size_t)fVolume.BlockSize()) { // write the whole block ssize_t written = write_pos(fVolume.Device(),