Index: src/compiler/graph.cc |
diff --git a/src/compiler/graph.cc b/src/compiler/graph.cc |
index 193861187ba1f8aeec349c6787a7c4e133f55a5b..07bf2ba44eb7cdb068796d0ed179f628172c444c 100644 |
--- a/src/compiler/graph.cc |
+++ b/src/compiler/graph.cc |
@@ -53,7 +53,7 @@ Node* Graph::NewNode(const Operator* op, int input_count, Node** inputs, |
NodeId Graph::NextNodeId() { |
NodeId const id = next_node_id_; |
- CHECK(!base::bits::SignedAddOverflow32(id, 1, &next_node_id_)); |
+ CHECK(!base::bits::UnsignedAddOverflow32(id, 1, &next_node_id_)); |
return id; |
} |