From 44ecb727c559c3545203919292901405197fe0b4 Mon Sep 17 00:00:00 2001 From: pxli168 Date: Tue, 18 Feb 2014 10:13:30 +0800 Subject: [PATCH] Change again. Opps. --- modules/core/src/command_line_parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/src/command_line_parser.cpp b/modules/core/src/command_line_parser.cpp index 0fa3304..2818e75 100644 --- a/modules/core/src/command_line_parser.cpp +++ b/modules/core/src/command_line_parser.cpp @@ -65,7 +65,7 @@ static void from_str(const String& str, int type, void* dst) { std::string temp; ss >> temp; - *(bool*) = temp == "true"; + *(bool*) dst = temp == "true"; } else if( type == Param::UNSIGNED_INT ) ss >> *(unsigned*)dst; -- 2.7.4