Opened 13 years ago

Closed 13 years ago

#221 closed bug (fixed)

integer: missing cast int(number)

Reported by: gorzel Owned by: somebody
Priority: minor Milestone: 3-1-2 and higher
Component: dontKnow Version: 3-1-1
Keywords: Cc:

Description

For integers Z, the cast from number to int is missing, only bigint is implemented.

>  ring rZ = integer,x,dp;
>   number q = 21331;
>   q;
21331
>   bigint(q);
21331 
>   int(q);    // BUG missing casts
0

Compare, with similar rings, where the cast exist.

>   ring rZ8 = (integer,8),x,dp;
>   number q = 7;
>   q;
7
>   bigint(q);
7
>   int(q);
7

> ring r32003=32003,x,dp;
> number q = 21331;
>   q;
-10672
>   bigint(q);
-10672
>   int(q);
-10672

Change History (1)

comment:1 Changed 13 years ago by hannes

Resolution: fixed
Status: newclosed

was: access to wrong address in nrzInt

Note: See TracTickets for help on using tickets.