mirror of
https://github.com/wassname/ray.git
synced 2026-07-11 23:42:33 +08:00
Fix compiler warnings and make warnings fatal (#5375)
This commit is contained in:
@@ -86,7 +86,7 @@ cdef VectorToObjectIDs(c_vector[CObjectID] object_ids):
|
||||
|
||||
|
||||
def compute_put_id(TaskID task_id, int64_t put_index):
|
||||
if put_index < 1 or put_index > CObjectID.MaxObjectIndex():
|
||||
if put_index < 1 or put_index > <int64_t>CObjectID.MaxObjectIndex():
|
||||
raise ValueError("The range of 'put_index' should be [1, %d]"
|
||||
% CObjectID.MaxObjectIndex())
|
||||
return ObjectID(CObjectID.ForPut(task_id.native(), put_index, 0).Binary())
|
||||
|
||||
Reference in New Issue
Block a user