Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7b71843

Browse files
authored
use i64::MAX instead of 0x3f3f3f3f3f3f3f3f (#22)
1 parent dc2fabd commit 7b71843

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/graph/flow.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pub struct FlowGraph {
1313

1414
impl FlowGraph {
1515
/// An upper limit to the flow.
16-
const INF: i64 = 0x3f3f_3f3f_3f3f_3f3f;
16+
const INF: i64 = i64::MAX;
1717

1818
/// Initializes an flow network with vmax vertices and no edges.
1919
pub fn new(vmax: usize, emax_hint: usize) -> Self {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /