Fixed defect detected by static analysis tool 22/110022/1
authorJi-hoon Lee <dalton.lee@samsung.com>
Thu, 12 Jan 2017 10:41:03 +0000 (19:41 +0900)
committerJi-hoon Lee <dalton.lee@samsung.com>
Thu, 12 Jan 2017 11:47:07 +0000 (20:47 +0900)
Change-Id: Ifbd54c73cc95f7883b99727bd073033de7040130

xmlresource/layout_parser.cpp

index cc27e1a..b170b39 100644 (file)
@@ -1306,7 +1306,7 @@ LayoutParserImpl::parsing_auto_popup_keys_record_node(
                             cur_rec->autopopup_key_values[shift_loop][autopopup_state] = (sclchar*)key;
                             add_key_string(key);
                         } else if (0 == xmlStrcmp(child_node->name, (const xmlChar*)"event")) {
-                            cur_rec->autopopup_key_events[shift_loop][autopopup_state] = atoi((sclchar*)key);
+                            cur_rec->autopopup_key_events[shift_loop][autopopup_state] = (sclulong)atoi((sclchar*)key);
                             add_key_string(key);
                         }
                     }