mirror of
https://github.com/vale981/ray
synced 2025-03-06 10:31:39 -05:00
Fix java ci break (#10472)
This commit is contained in:
parent
ba3bd6b225
commit
d584a4e5c4
1 changed files with 2 additions and 2 deletions
|
@ -256,8 +256,8 @@ inline ID JavaByteArrayToId(JNIEnv *env, const jbyteArray &bytes) {
|
|||
std::string id_str(ID::Size(), 0);
|
||||
env->GetByteArrayRegion(bytes, 0, ID::Size(),
|
||||
reinterpret_cast<jbyte *>(&id_str.front()));
|
||||
auto arr_size = env->GetArrayLength(bytes)
|
||||
RAY_CHECK(arr_size == ID::Size()) << "ID length should be " ID::Size() << " instead of " << arr_size;
|
||||
auto arr_size = env->GetArrayLength(bytes);
|
||||
RAY_CHECK(arr_size == ID::Size()) << "ID length should be " << ID::Size() << " instead of " << arr_size;
|
||||
return ID::FromBinary(id_str);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue