Skip to content

Commit 567be80

Browse files
committed
ossl.h: add UINT64T2NUM(x)
1 parent b353e40 commit 567be80

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

ext/openssl/ossl.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,10 @@ extern VALUE eOSSLError;
9898
#if !defined(NUM2UINT64T) /* in case Ruby starts to provide */
9999
# if SIZEOF_LONG == 8
100100
# define NUM2UINT64T(x) ((uint64_t)NUM2ULONG(x))
101+
# define UINT64T2NUM(x) ULONG2NUM(x)
101102
# elif defined(HAVE_LONG_LONG) && SIZEOF_LONG_LONG == 8
102103
# define NUM2UINT64T(x) ((uint64_t)NUM2ULL(x))
104+
# define UINT64T2NUM(x) ULL2NUM(x)
103105
# else
104106
# error "unknown platform; no 64-bit width integer"
105107
# endif

0 commit comments

Comments
 (0)