summaryrefslogtreecommitdiffhomepage
path: root/auto/types
diff options
context:
space:
mode:
Diffstat (limited to 'auto/types')
-rw-r--r--auto/types/typedef5
-rw-r--r--auto/types/uintptr_t5
2 files changed, 4 insertions, 6 deletions
diff --git a/auto/types/typedef b/auto/types/typedef
index 697190097..d81229331 100644
--- a/auto/types/typedef
+++ b/auto/types/typedef
@@ -28,9 +28,8 @@ do
$NGX_INCLUDE_INTTYPES_H
int main() {
- $ngx_try i;
- i = 0;
- return 0;
+ $ngx_try i = 0;
+ return (int) i;
}
END
diff --git a/auto/types/uintptr_t b/auto/types/uintptr_t
index 2a00b493c..2f1908035 100644
--- a/auto/types/uintptr_t
+++ b/auto/types/uintptr_t
@@ -15,9 +15,8 @@ cat << END > $NGX_AUTOTEST.c
$NGX_INTTYPES_H
int main() {
- uintptr_t i;
- i = 0;
- return 0;
+ uintptr_t i = 0;
+ return (int) i;
}
END