Skip to content

Commit 29f993a

Browse files
committed
fix: maybe overflow
1 parent 147714b commit 29f993a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

patch-testing/sp1-test/src/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ pub fn pretty_comparison(
111111
name,
112112
old,
113113
new,
114-
((old - new) as f64 / old as f64) * 100.0
114+
((old as f64 - new as f64) / old as f64) * 100.0
115115
)?;
116116
}
117117

0 commit comments

Comments
 (0)