attribute_overlay: fixed a warning.
* warning about comparison between signed and unsigned integer expressions.
This commit is contained in:
parent
3756e0ac38
commit
88499de190
@ -1049,7 +1049,7 @@ AttributeEntry::FillDirent(struct dirent *dirent, size_t bufferSize,
|
||||
status_t
|
||||
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);
|
||||
return B_OK;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user