diff options
author | sthen <> | 2014-04-14 14:50:09 +0000 |
---|---|---|
committer | sthen <> | 2014-04-14 14:50:09 +0000 |
commit | c03306dde55b9ef0d2073f1376f36b96f84c0679 (patch) | |
tree | 2983dd43dc8ad4f271e515467509c9f79a24ab1a /src/lib/libcrypto/bn/bn_mont.c | |
parent | 95692a60ee0169e369d59f82504e36ff376e13ba (diff) | |
download | openbsd-c03306dde55b9ef0d2073f1376f36b96f84c0679.tar.gz openbsd-c03306dde55b9ef0d2073f1376f36b96f84c0679.tar.bz2 openbsd-c03306dde55b9ef0d2073f1376f36b96f84c0679.zip |
replace PTR_SIZE_INT (only used for VMS) with uintptr_t, tweaks from jca@,
makes sense to beck@
Diffstat (limited to 'src/lib/libcrypto/bn/bn_mont.c')
-rw-r--r-- | src/lib/libcrypto/bn/bn_mont.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/libcrypto/bn/bn_mont.c b/src/lib/libcrypto/bn/bn_mont.c index 427b5cf4df..a6713ae5b1 100644 --- a/src/lib/libcrypto/bn/bn_mont.c +++ b/src/lib/libcrypto/bn/bn_mont.c | |||
@@ -247,7 +247,7 @@ static int BN_from_montgomery_word(BIGNUM *ret, BIGNUM *r, BN_MONT_CTX *mont) | |||
247 | * trick unconditional memcpy below to perform in-place | 247 | * trick unconditional memcpy below to perform in-place |
248 | * "refresh" instead of actual copy. */ | 248 | * "refresh" instead of actual copy. */ |
249 | m=(0-(size_t)v); | 249 | m=(0-(size_t)v); |
250 | nrp=(BN_ULONG *)(((PTR_SIZE_INT)rp&~m)|((PTR_SIZE_INT)ap&m)); | 250 | nrp=(BN_ULONG *)(((uintptr_t)rp&~m)|((uintptr_t)ap&m)); |
251 | 251 | ||
252 | for (i=0,nl-=4; i<nl; i+=4) | 252 | for (i=0,nl-=4; i<nl; i+=4) |
253 | { | 253 | { |