diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2017-02-01 22:10:45 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2017-07-14 13:47:31 +0100 |
commit | b41c851312876dbf146fb674265b86c72ed611ab (patch) | |
tree | 039df84c471a7271495e7c94a095aa14cd8614c2 /scripts/kconfig/mconf.c | |
parent | 213b279baaae27a4285eb354f11e3c3b1986d129 (diff) | |
download | busybox-w32-b41c851312876dbf146fb674265b86c72ed611ab.tar.gz busybox-w32-b41c851312876dbf146fb674265b86c72ed611ab.tar.bz2 busybox-w32-b41c851312876dbf146fb674265b86c72ed611ab.zip |
fixdep: fix assumption that `long` is as large as `void *`
It is not. At least not in general. And in particular not on 64-bit
Windows, where sizeof(long) == 4.
What the code wanted to use is actually called intptr_t.
Note: `intptr_t` is a C99 feature.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Diffstat (limited to 'scripts/kconfig/mconf.c')
-rw-r--r-- | scripts/kconfig/mconf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/kconfig/mconf.c b/scripts/kconfig/mconf.c index 006d03708..e2e6ca8c7 100644 --- a/scripts/kconfig/mconf.c +++ b/scripts/kconfig/mconf.c | |||
@@ -783,7 +783,7 @@ static void conf(struct menu *menu) | |||
783 | switch (type) { | 783 | switch (type) { |
784 | case 'm': | 784 | case 'm': |
785 | if (single_menu_mode) | 785 | if (single_menu_mode) |
786 | submenu->data = (void *) (long) !submenu->data; | 786 | submenu->data = (void *) (intptr_t) !submenu->data; |
787 | else | 787 | else |
788 | conf(submenu); | 788 | conf(submenu); |
789 | break; | 789 | break; |