Fix warning on macOS

pull/247/head
Michael 6 years ago
parent 1f95f1e78f
commit 4b25dd901b
No known key found for this signature in database
GPG Key ID: 2D51757B47E2434C

@ -338,7 +338,7 @@ namespace llarp
}
f.seekg(0, std::ios::end);
auto l = f.tellg();
if(l > sizeof(tmp))
if(l > static_cast< std::streamoff >(sizeof tmp))
return false;
f.seekg(0, std::ios::beg);
f.read((char *)tmp, l);

Loading…
Cancel
Save