[PATCH] backport a fix from open-axiom

8 views
Skip to first unread message

Qian Yun

unread,
Apr 9, 2024, 7:24:59 AM4/9/24
to fricas-devel
This fix is a subset of this commit:

https://github.com/GabrielDosReis/open-axiom/commit/c18ddc965ea2ac28a2c32e99dc2ac90c946a7aee

- Qian

diff --git a/src/hyper/extent2.c b/src/hyper/extent2.c
index b0b4443f..524312d0 100644
--- a/src/hyper/extent2.c
+++ b/src/hyper/extent2.c
@@ -554,7 +554,7 @@ text_height1(TextNode * node, int Ender)
{
for (; node != NULL; node = node->next) {
if (Ender == Endtokens) {
- if (node->type > -Endtokens)
+ if (node->type >= Endtokens)
return cur_height;
}
else if (node->type == Ender)

Waldek Hebisch

unread,
Apr 9, 2024, 11:06:55 AM4/9/24
to fricas...@googlegroups.com
On Tue, Apr 09, 2024 at 07:24:55PM +0800, Qian Yun wrote:
> This fix is a subset of this commit:
>
> https://github.com/GabrielDosReis/open-axiom/commit/c18ddc965ea2ac28a2c32e99dc2ac90c946a7aee

Thanks, please commit.

>
> - Qian
>
> diff --git a/src/hyper/extent2.c b/src/hyper/extent2.c
> index b0b4443f..524312d0 100644
> --- a/src/hyper/extent2.c
> +++ b/src/hyper/extent2.c
> @@ -554,7 +554,7 @@ text_height1(TextNode * node, int Ender)
> {
> for (; node != NULL; node = node->next) {
> if (Ender == Endtokens) {
> - if (node->type > -Endtokens)
> + if (node->type >= Endtokens)
> return cur_height;
> }
> else if (node->type == Ender)
>
> --
> You received this message because you are subscribed to the Google Groups "FriCAS - computer algebra system" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to fricas-devel...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/fricas-devel/34744a44-63d2-4ab7-8be2-b7dd9dc9e208%40gmail.com.

--
Waldek Hebisch
Reply all
Reply to author
Forward
0 new messages