Fix compiler warnings and make warnings fatal (#5375)

This commit is contained in:
Philipp Moritz
2019-08-07 14:04:05 -07:00
committed by GitHub
parent 7d747da420
commit 8d6c50c821
27 changed files with 61 additions and 63 deletions
+1 -1
View File
@@ -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())