Commit 6c29fac702dd98dcbe605555cd0f9d92d9eecc45

Steffen Jaeckel 2019-06-05T21:27:20

Merge pull request #312 from libtom/msvc-warning-C4028 Fix MSVC warning

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/tommath.h b/tommath.h
index 6f7525c..4fdbd60 100644
--- a/tommath.h
+++ b/tommath.h
@@ -369,7 +369,7 @@ mp_err mp_rand(mp_int *a, int digits) MP_WUR;
 /* makes a pseudo-random small int of a given size */
 MP_DEPRECATED(mp_rand) mp_err mp_rand_digit(mp_digit *r) MP_WUR;
 /* use custom random data source instead of source provided the platform */
-void mp_rand_source(mp_err source(void *out, size_t size));
+void mp_rand_source(mp_err(*source)(void *out, size_t size));
 
 #ifdef MP_PRNG_ENABLE_LTM_RNG
 #  warning MP_PRNG_ENABLE_LTM_RNG has been deprecated, use mp_rand_source instead.