mirror of
https://github.com/wassname/ray.git
synced 2026-10-27 13:10:25 +08:00
Fix compiler warnings and make warnings fatal (#5375)
This commit is contained in:
1 parent
7d747da420
commit
8d6c50c821
27 files changed
+61
-63
No files matched your search
@@ -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