Fix compatibility for x64 arch : Fix Invalid Cast
authorBaptiste DURAND <baptiste.durand@eurogiciel.fr>
Fri, 7 Jun 2013 12:40:50 +0000 (14:40 +0200)
committerRusty Lynch <rusty.lynch@intel.com>
Fri, 7 Jun 2013 20:20:00 +0000 (13:20 -0700)
For x64 : cast from void* to long long instead of int for x64 arch.

Source/WebKit2/UIProcess/API/efl/tizen/FormDataCandidatePopup.cpp

index b04ec8c..0070d46 100755 (executable)
@@ -40,8 +40,13 @@ static Vector<String> m_formdata;
 
 static char* getItemLabel(void* data, Evas_Object* obj, const char* part)
 {
+#if __x86_64__
+    char* label = new char[m_formdata[(long long)data].length()];
+    strcpy(label, m_formdata[(long long)data].utf8().data());
+#else
     char* label = new char[m_formdata[(int)data].length()];
     strcpy(label, m_formdata[(int)data].utf8().data());
+#endif    
     return label;
 }
 static void itemSelectCb(void* data, Evas_Object* obj, void* event_info)