From 19eeffcc1e8689d559932fe904f13cfae9e8066c Mon Sep 17 00:00:00 2001 From: Baptiste DURAND Date: Fri, 7 Jun 2013 14:40:50 +0200 Subject: [PATCH] Fix compatibility for x64 arch : Fix Invalid Cast For x64 : cast from void* to long long instead of int for x64 arch. --- Source/WebKit2/UIProcess/API/efl/tizen/FormDataCandidatePopup.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/WebKit2/UIProcess/API/efl/tizen/FormDataCandidatePopup.cpp b/Source/WebKit2/UIProcess/API/efl/tizen/FormDataCandidatePopup.cpp index b04ec8c..0070d46 100755 --- a/Source/WebKit2/UIProcess/API/efl/tizen/FormDataCandidatePopup.cpp +++ b/Source/WebKit2/UIProcess/API/efl/tizen/FormDataCandidatePopup.cpp @@ -40,8 +40,13 @@ static Vector 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) -- 2.7.4