Skip to content

Commit d7e0414

Browse files
committed
jint comment update
1 parent 820803d commit d7e0414

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/c/h3-java/src/jniapi.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,9 @@ JNIEXPORT jlong JNICALL Java_com_uber_h3core_NativeMethods_constructCell(
230230

231231
if (digitsElements != NULL) {
232232
// if sz is too small, bad things will happen
233-
// TODO: Confirm jint == int on the current platform
233+
// note: We assume int can at least contain `jint` on the current platform.
234+
// This may not be true if sizeof(int) < 32, but we don't support any platforms
235+
// where this would be the case.
234236
H3Error err = constructCell(res, baseCell, digitsElements, &result);
235237

236238
(**env).ReleaseIntArrayElements(env, digits, digitsElements, 0);

0 commit comments

Comments
 (0)