I still get an error after you switched back to the previous version. Here's what i got on my x86_64 box:
[EMAIL PROTECTED] ~/prj/cpp/fltk $ make === making src === Compiling ShortcutAssignment.cxx... ShortcutAssignment.cxx: In member function ‘unsigned int fltk::Widget::shortcut() const’: ShortcutAssignment.cxx:121: error: cast from ‘void*’ to ‘unsigned int’ loses precision ShortcutAssignment.cxx: In member function ‘virtual bool keyCompareFunctor::handle(const fltk::AssociationType&, const fltk::Widget*, void*)’: ShortcutAssignment.cxx:214: warning: suggest parentheses around arithmetic in operand of | ShortcutAssignment.cxx: In function ‘unsigned int fltk::foreachShortcut(const fltk::Widget*, fltk::ShortcutFunctor&)’: ShortcutAssignment.cxx:308: error: cast from ‘void*’ to ‘unsigned int’ loses precision make[1]: *** [ShortcutAssignment.o] Error 1 make: *** [all] Error 2 PS. I am not advocating my solution as good one, but I have tested it on x86_64 Linux, x86_32 Linux, XP and Vista, and it worked on all mentioned platforms (with size_t). It is also a solution proposed all around AFAIK. So... we still have problems here I think. Fabien proposed a good solution, IMHO - to write safe typedefs (allthough i would prefer int8_t, int16_t, int32_t and int64_t as oppsed to INT*) Any suggestions? _______________________________________________ fltk-dev mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-dev
