From 598baf257f7f65e4b60b85f5f10147de3237a0b1 Mon Sep 17 00:00:00 2001 From: riccardom Date: Sun, 13 Nov 2011 17:40:12 +0000 Subject: [PATCH] path: shut up cppcheck " Unusual pointer arithmetic" error [src/path.h:252]: (error) Unusual pointer arithmetic --- desmume/src/path.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desmume/src/path.h b/desmume/src/path.h index 53e958e82..681f9a61a 100644 --- a/desmume/src/path.h +++ b/desmume/src/path.h @@ -249,7 +249,7 @@ public: if(action == GET) { std::string thePath = pathToCopy; - std::string relativePath = "." + DIRECTORY_DELIMITER_CHAR; + std::string relativePath = (std::string)"." + DIRECTORY_DELIMITER_CHAR; int len = (int)thePath.size()-1;