summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/configurator/configurator.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/configurator/configurator.c b/tools/configurator/configurator.c
index a162ee67..119404f5 100644
--- a/tools/configurator/configurator.c
+++ b/tools/configurator/configurator.c
@@ -282,7 +282,8 @@ static struct test tests[] = {
"int main(int argc, char *argv[]) {\n"
" char pad[sizeof(int *) * 1];\n"
" strncpy(pad, argv[0], sizeof(pad));\n"
- " return *(int *)(pad) == *(int *)(pad + 1);\n"
+ " int *x = (int *)pad, *y = (int *)(pad + 1);\n"
+ " return *x == *y;\n"
"}\n" },
{ "HAVE_UTIME", DEFINES_FUNC, NULL, NULL,
"#include <sys/types.h>\n"