diff options
| author | Ubuntu <github@matdoes.dev> | 2022-09-02 20:50:41 +0000 |
|---|---|---|
| committer | Ubuntu <github@matdoes.dev> | 2022-09-02 20:50:41 +0000 |
| commit | 2557d70576764c32773153d33eeaa31f34b16b15 (patch) | |
| tree | d6514e721be7ba260ead72127f11ca11e629600a /azalea-core/src | |
| parent | 1dec4f5664c08a9571c0fdbdb81088f1fde821db (diff) | |
| download | azalea-drasl-2557d70576764c32773153d33eeaa31f34b16b15.tar.xz | |
collision test passes???
Diffstat (limited to 'azalea-core/src')
| -rwxr-xr-x | azalea-core/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/azalea-core/src/lib.rs b/azalea-core/src/lib.rs index 5aca7d52..66d9a2ea 100755 --- a/azalea-core/src/lib.rs +++ b/azalea-core/src/lib.rs @@ -49,7 +49,7 @@ pub fn floor_mod(x: i32, y: u32) -> u32 { } // TODO: make this generic -pub fn binary_search(mut min: u32, max: u32, predicate: &dyn Fn(u32) -> bool) -> u32 { +pub fn binary_search(mut min: i32, max: i32, predicate: &dyn Fn(i32) -> bool) -> i32 { let mut diff = max - min; while diff > 0 { let diff_mid = diff / 2; |
