From 99fab07efa94d1f6982cd4911d42aedea76a1345 Mon Sep 17 00:00:00 2001 From: kayomn Date: Tue, 28 Feb 2023 14:12:15 +0000 Subject: [PATCH] Fix template expansion errors in coral --- source/coral.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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()); } /**