Mercurial > hg > xemacs-beta
diff src/fontcolor-msw.c @ 5934:e2fae7783046 cygwin
lots of use of EMACS_INT, a few others, to eliminate all pointer truncation warnings
author | Henry Thompson <ht@markup.co.uk> |
---|---|
date | Sat, 12 Dec 2015 19:08:46 +0000 |
parents | 56144c8593a8 |
children |
line wrap: on
line diff
--- a/src/fontcolor-msw.c Thu Dec 10 17:55:59 2015 +0000 +++ b/src/fontcolor-msw.c Sat Dec 12 19:08:46 2015 +0000 @@ -1418,7 +1418,7 @@ static Hashcode mswindows_color_instance_hash (Lisp_Color_Instance *c, int UNUSED (depth)) { - return (unsigned long) COLOR_INSTANCE_MSWINDOWS_COLOR (c); + return (uintptr_t) COLOR_INSTANCE_MSWINDOWS_COLOR (c); } static Lisp_Object @@ -1947,7 +1947,7 @@ int UNUSED (escapeflag)) { write_fmt_string (printcharfun, " 0x%lx", - (unsigned long) + (uintptr_t) FONT_INSTANCE_MSWINDOWS_HFONT_VARIANT (f, 0, 0)); }