From 90d43956ec10177a8e574a3a9f3f38d45c184d00 Mon Sep 17 00:00:00 2001 From: Tsuda Kageyu Date: Fri, 21 Jun 2013 11:31:51 +0900 Subject: [PATCH] Fixed a wrong integer type --- taglib/fileref.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/taglib/fileref.cpp b/taglib/fileref.cpp index 12abc83d..306a8cd2 100644 --- a/taglib/fileref.cpp +++ b/taglib/fileref.cpp @@ -86,8 +86,8 @@ namespace #endif - const int pos = s.rfind("."); - if(pos != -1) + const size_t pos = s.rfind("."); + if(pos != String::npos) ext = s.substr(pos + 1).upper(); }