Skip to content

Commit 7840c94

Browse files
authored
Merge pull request #92 from AdaWorldAPI/claude/risc-thought-engine-TCZw7
refactor: replace hardcoded EULER_GAMMA with std::f64::consts::EULER_…
2 parents b073060 + 274f8d2 commit 7840c94

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/hpc/ocr_felt.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
1212
use super::ocr_simd::{BinaryImage, GrayImage, foreground_count};
1313

14-
/// Euler-Mascheroni constant.
15-
const EULER_GAMMA: f64 = 0.5772156649;
14+
/// Euler-Mascheroni constant (Rust 1.94+).
15+
const EULER_GAMMA: f64 = std::f64::consts::EULER_GAMMA;
1616
/// Signal floor for skew detection: γ/(γ+1).
1717
const SKEW_FLOOR: f64 = EULER_GAMMA / (EULER_GAMMA + 1.0);
1818

0 commit comments

Comments
 (0)