From d1e51ebf426b47e6c1d4e35775ca66407ef474fd Mon Sep 17 00:00:00 2001 From: Marc Zinnschlag Date: Wed, 9 Jan 2013 12:25:45 +0100 Subject: [PATCH] silenced some warnings --- components/bsa/bsa_archive.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/bsa/bsa_archive.cpp b/components/bsa/bsa_archive.cpp index b067c5290b..011b81351d 100644 --- a/components/bsa/bsa_archive.cpp +++ b/components/bsa/bsa_archive.cpp @@ -188,8 +188,8 @@ public: std::size_t npos = i->first.rfind ('/'); fi.archive = this; - fi.filename = npos != -1 ? i->first.substr (npos) : i->first; - fi.path = npos != -1 ? i->first.substr (0, npos) : ""; + fi.filename = npos != std::string::npos ? i->first.substr (npos) : i->first; + fi.path = npos != std::string::npos ? i->first.substr (0, npos) : ""; fi.compressedSize = fi.uncompressedSize = 0; ptr->push_back(fi);