Use intptr_t in C when talking about a pointer.
authorMatt Corallo <git@bluematt.me>
Mon, 17 Jan 2022 02:50:23 +0000 (02:50 +0000)
committerMatt Corallo <git@bluematt.me>
Mon, 17 Jan 2022 04:34:52 +0000 (04:34 +0000)
commitb0ba503b308bcdcbf1b7609876705c12408e44e6
tree0935aa7f667ae284630a6572255ecd7c102529ce
parentad349e9829b9aa666ef143eb1c7a71765ff942a0
Use intptr_t in C when talking about a pointer.

This fixes a bug in TS where we'd return an int64_t when we intended
to return a pointer, confusing JavaScript as to why it has a bigint
instead of a number.

This may make it harder to support 32-bit Java platforms in the
future if we have a reason to do so, but that seems unlikely and
its possible we can simply redefine the type.
genbindings.py