attribute_overlay: fixed a warning.

* warning about comparison between signed and unsigned integer expressions.
This commit is contained in:
Jérôme Duval
2013-04-29 21:25:20 +02:00
parent 3756e0ac38
commit 88499de190
@@ -1049,7 +1049,7 @@ AttributeEntry::FillDirent(struct dirent *dirent, size_t bufferSize,
status_t status_t
AttributeEntry::Read(off_t position, void *buffer, size_t *length) AttributeEntry::Read(off_t position, void *buffer, size_t *length)
{ {
*length = min_c(*length, fEntry->size - position); *length = (size_t)min_c((off_t)*length, fEntry->size - position);
memcpy(buffer, fData + position, *length); memcpy(buffer, fData + position, *length);
return B_OK; return B_OK;
} }