Author: spitzak
Date: 2008-11-12 12:55:28 -0800 (Wed, 12 Nov 2008)
New Revision: 6522
Log:
Missed a few more places where the casting trick is needed


Modified:
   trunk/src/ShortcutAssignment.cxx

Modified: trunk/src/ShortcutAssignment.cxx
===================================================================
--- trunk/src/ShortcutAssignment.cxx    2008-11-12 20:49:58 UTC (rev 6521)
+++ trunk/src/ShortcutAssignment.cxx    2008-11-12 20:55:28 UTC (rev 6522)
@@ -118,7 +118,7 @@
   than onle you must use fltk::list_shortcuts(this).
 */
 unsigned Widget::shortcut() const {
-  return (unsigned int)get(shortcutAssociation);
+  return unsigned(long(get(shortcutAssociation)));
 }
 
 
@@ -305,7 +305,7 @@
 */
 unsigned fltk::foreachShortcut(const Widget* widget, ShortcutFunctor& f) {
   GlueFunctor g(f);
-  return (unsigned int)(foreach(&shortcutAssociation, widget, g));
+  return unsigned(long(foreach(&shortcutAssociation, widget, g)));
 }
 
 // End of $Id$

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to