Fix all warnings in myfile.cc

This commit is contained in:
heckflosse
2017-03-31 19:31:19 +02:00
parent a04fc0dc2f
commit 975330fb97

View File

@@ -364,7 +364,7 @@ int fscanf (IMFILE* f, const char* s ...)
char buf[50], *endptr = nullptr;
int copy_sz = f->size - f->pos;
if (copy_sz > sizeof(buf)) {
if (copy_sz > static_cast<int>(sizeof(buf))) {
copy_sz = sizeof(buf) - 1;
}