From ee84bc9b80a68677e69c68ceb801bf4a0ef26c6d Mon Sep 17 00:00:00 2001 From: Joe Ranweiler Date: Mon, 1 May 2017 15:56:33 -0700 Subject: [PATCH] Use explicitly-sized integer type in C predicate. I agree to license my contributions to each file under the terms given at the top of each file I changed. --- crypto/cpu-arm.c | 2 +- include/GFp/cpu.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto/cpu-arm.c b/crypto/cpu-arm.c index 020180e0b..e41f78c2d 100644 --- a/crypto/cpu-arm.c +++ b/crypto/cpu-arm.c @@ -22,7 +22,7 @@ extern uint32_t GFp_armcap_P; -char GFp_is_NEON_capable_at_runtime(void) { +uint8_t GFp_is_NEON_capable_at_runtime(void) { return (GFp_armcap_P & ARMV7_NEON) != 0; } diff --git a/include/GFp/cpu.h b/include/GFp/cpu.h index c8cf1b7ec..44fb79d68 100644 --- a/include/GFp/cpu.h +++ b/include/GFp/cpu.h @@ -113,7 +113,7 @@ extern uint32_t GFp_ia32cap_P[4]; /* GFp_is_NEON_capable_at_runtime returns true if the current CPU has a NEON * unit. Note that |OPENSSL_armcap_P| also exists and contains the same * information in a form that's easier for assembly to use. */ -OPENSSL_EXPORT char GFp_is_NEON_capable_at_runtime(void); +OPENSSL_EXPORT uint8_t GFp_is_NEON_capable_at_runtime(void); /* GFp_is_NEON_capable returns true if the current CPU has a NEON unit. If * this is known statically then it returns one immediately. */