Fix some more compiler warnings

This commit is contained in:
Lawrence Lee
2024-11-18 23:42:33 -08:00
parent 721d664136
commit 29a344aef1
6 changed files with 58 additions and 4 deletions

View File

@@ -57,7 +57,7 @@ RTSurface::RTSurface(const Glib::ustring &fname) :
// Create surface based on file extension
const auto pos = fname.find_last_of('.');
if (pos >= 0 && pos < fname.length()) {
if (pos < fname.length()) {
const auto fext = fname.substr(pos + 1, fname.length()).lowercase();
// Case where fname is a PNG file