libc_ffat: Fix compiler warning

Fixes #1546
This commit is contained in:
Adrian-Ken Rueegsegger 2015-05-26 18:02:02 +02:00 committed by Christian Helmuth
parent 965d85d52d
commit 6b0b297351

View File

@ -434,7 +434,7 @@ class Plugin : public Libc::Plugin
switch(res) {
case FR_OK:
/* according to the FatFs documentation this can happen */
if (f_tell(_get_ffat_file(fd)) != offset) {
if ((off_t)f_tell(_get_ffat_file(fd)) != offset) {
errno = EINVAL;
return -1;
}