From e0bff7cb7e4b0aa0b45088a5ac2ec193bfd16ada Mon Sep 17 00:00:00 2001 From: Nikolaj Date: Mon, 13 Apr 2026 11:45:21 +0200 Subject: [PATCH] :goat: Small fix --- centvrion/ast_nodes.py | 2 +- centvrion/compiler/runtime/cent_runtime.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/centvrion/ast_nodes.py b/centvrion/ast_nodes.py index b70509c..90490db 100644 --- a/centvrion/ast_nodes.py +++ b/centvrion/ast_nodes.py @@ -169,7 +169,7 @@ def frac_to_fraction(s, magnvm=False, svbnvlla=False): def fraction_to_frac(f, magnvm=False, svbnvlla=False): if f < 0: if not svbnvlla: - raise CentvrionError("Cannot display negative fractions without 'SVBNVLLA' module") + raise CentvrionError("Cannot display negative numbers without 'SVBNVLLA' module") return "-" + fraction_to_frac(-f, magnvm, svbnvlla) integer_part = int(f) diff --git a/centvrion/compiler/runtime/cent_runtime.c b/centvrion/compiler/runtime/cent_runtime.c index 2db9b65..904bcfe 100644 --- a/centvrion/compiler/runtime/cent_runtime.c +++ b/centvrion/compiler/runtime/cent_runtime.c @@ -236,7 +236,7 @@ static int write_val(CentValue v, char *buf, int bufsz) { long num = v.fval.num, den = v.fval.den; if (den < 0) { num = -num; den = -den; } if (num < 0) - cent_runtime_error("cannot display negative fraction without SVBNVLLA"); + cent_runtime_error("cannot display negative numbers without SVBNVLLA"); long int_part = num / den; long rem_num = num % den;