From a83d8d14b53bb6b5a83c710201e95d34cd9eaeba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Mon, 29 Apr 2013 21:31:20 +0200 Subject: [PATCH] Installer: fixed two warnings. * warnings about comparison between signed and unsigned integer expressions. * also use std::min() instead of min_c() --- src/apps/installer/CopyEngine.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/apps/installer/CopyEngine.cpp b/src/apps/installer/CopyEngine.cpp index b4f4eca84b..144a85dc01 100644 --- a/src/apps/installer/CopyEngine.cpp +++ b/src/apps/installer/CopyEngine.cpp @@ -431,14 +431,14 @@ CopyEngine::_CopyFolder(const char* _source, const char* _destination, uint8 buffer[size]; off_t offset = 0; ssize_t read = sourceNode.ReadAttr(attrName, info.type, - offset, buffer, min_c(size, info.size)); + offset, buffer, std::min((off_t)size, info.size)); // NOTE: It's important to still write the attribute even if // we have read 0 bytes! while (read >= 0) { targetNode.WriteAttr(attrName, info.type, offset, buffer, read); offset += read; read = sourceNode.ReadAttr(attrName, info.type, - offset, buffer, min_c(size, info.size - offset)); + offset, buffer, std::min((off_t)size, info.size - offset)); if (read == 0) break; }