chiark / gitweb /
Fix an int->pointer cast warning in windows.c.
authorSimon Tatham <anakin@pobox.com>
Sun, 1 Oct 2017 13:50:58 +0000 (14:50 +0100)
committerSimon Tatham <anakin@pobox.com>
Sun, 1 Oct 2017 14:18:14 +0000 (15:18 +0100)
commitedcf839d4c557c3993d681665829390697353344
tree50ba8ea86e0b499153e54f78ca3fe94283f51e90
parent8ea15f3b3525d2ef5341f8122871c4f0ff77260a
Fix an int->pointer cast warning in windows.c.

If I increase clang-cl's warning pickiness, it starts objecting to my
cast to HMENU from a (potentially, in 64 bits) smaller integer type.

Actually I don't think there's a problem there - all the integer ids I
cast to HMENU are nice small numbers and a widening cast is just fine.
But I can suppress the warning by using INT_PTR instead of int in the
prototype for mkctrl, so it's easiest just to do that.
windows.c