Fixed defect detected by static analysis tool
[platform/core/uifw/libscl-ui.git] / 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);
                         }
                     }