diff --git a/source/coral.cpp b/source/coral.cpp index fba2a8a..1b3f364 100755 --- a/source/coral.cpp +++ b/source/coral.cpp @@ -50,6 +50,8 @@ export namespace coral { using i64 = int64_t; + usize const i64_max = 0xffffffffffffffff; + using f32 = float; using f64 = double; @@ -464,7 +466,7 @@ export namespace coral { * Invokes the `apply` procedure if the expected is not ok, otherwise having no side-effects. */ void and_then(closure const & apply) { - if (this->is_ok()) apply(**this); + if (this->is_ok()) apply(*this->ok()); } /**