On Fri, Jul 13, 2012 at 8:19 AM, Carsten Haitzler <[email protected]> wrote: > On Fri, 13 Jul 2012 06:12:26 +0200 Vincent Torri <[email protected]> > said: > > eh? even if compiling with gcc?
Yes Vincent >> just to be sure : on win64, long is 32 bits long. Better using uintptr_t ? >> >> Vincent >> >> On Fri, Jul 13, 2012 at 1:53 AM, Enlightenment SVN >> <[email protected]> wrote: >> > Log: >> > fix compiler error on 64bits machines: >> > >> > CElmPopup.cc: In function 'void elm::_item_selected_cb(void*, >> > Evas_Object*, void*)': CElmPopup.cc:245:30: error: cast from 'void*' to >> > 'int' loses precision [-fpermissive] >> > >> > CElmPopup.cc: In member function 'v8::Handle<v8::Value> >> > elm::CElmPopup::message(const v8::Arguments&)': CElmPopup.cc:320:120: >> > warning: cast to pointer from integer of different size >> > [-Wint-to-pointer-cast] CElmPopup.cc:323:113: warning: cast to pointer from >> > integer of different size [-Wint-to-pointer-cast] >> > >> > >> > >> > Author: barbieri >> > Date: 2012-07-12 16:53:42 -0700 (Thu, 12 Jul 2012) >> > New Revision: 73782 >> > Trac: http://trac.enlightenment.org/e/changeset/73782 >> > >> > Modified: >> > trunk/PROTO/elev8/src/modules/elm/CElmPopup.cc >> > >> > Modified: trunk/PROTO/elev8/src/modules/elm/CElmPopup.cc >> > =================================================================== >> > --- trunk/PROTO/elev8/src/modules/elm/CElmPopup.cc 2012-07-12 23:22:22 >> > UTC (rev 73781) +++ trunk/PROTO/elev8/src/modules/elm/CElmPopup.cc >> > 2012-07-12 23:53:42 UTC (rev 73782) @@ -242,7 +242,7 @@ >> > { >> > CElmPopup *self = static_cast<CElmPopup *>(evas_object_data_get(popup, >> > "this")); if (self) >> > - self->ItemSelected((int)data); >> > + self->ItemSelected((int)(long)data); >> > } >> > >> > Handle<Value> CElmPopup::message(const Arguments &args) >> > @@ -317,10 +317,10 @@ >> > Evas_Object *eo_icon = (!icon.IsEmpty() && >> > icon->IsObject >> > ()) ? GetEvasObjectFromJavascript(Realise(icon->ToObject(), jsObject)) : >> > NULL; >> > >> > - elm_popup_item_append(eo, *String::Utf8Value >> > (text->ToString()), eo_icon, _item_selected_cb, (void *)i); >> > + elm_popup_item_append(eo, *String::Utf8Value >> > (text->ToString()), eo_icon, _item_selected_cb, (void *)(long)i); } >> > else >> > - elm_popup_item_append(eo, *String::Utf8Value(item->ToString >> > ()), NULL, _item_selected_cb, (void *)i); >> > + elm_popup_item_append(eo, *String::Utf8Value(item->ToString >> > ()), NULL, _item_selected_cb, (void *)(long)i); } >> > } >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > Live Security Virtual Conference >> > Exclusive live event will cover all the ways today's security and >> > threat landscape has changed and how IT managers can respond. Discussions >> > will include endpoint security, mobile security and the latest in malware >> > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> > _______________________________________________ >> > enlightenment-svn mailing list >> > [email protected] >> > https://lists.sourceforge.net/lists/listinfo/enlightenment-svn >> >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. Discussions >> will include endpoint security, mobile security and the latest in malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> enlightenment-devel mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel >> > > > -- > ------------- Codito, ergo sum - "I code, therefore I am" -------------- > The Rasterman (Carsten Haitzler) [email protected] > ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
