Opened 4 years ago
Closed 4 years ago
#844 closed bug (fixed)
The cast bigint( ) assigns numbers to bigints
Reported by: | gorzel | Owned by: | somebody |
---|---|---|---|
Priority: | minor | Milestone: | 4-2-0 and higher |
Component: | singular-kernel | Version: | 4-1-1 |
Keywords: | Cc: |
Description
With the cast bigint( ) on can assign rational numbers to bigints. A bug or just a feature?
> system("version"); 4112 > ring r=0,x,dp; > int n; > bigint N; > n = int(7/3); n; 2 > N = bigint(7/3); N; <-- Bug here 7/3 > typeof(N); bigint > N = int(7/3); N; // OK 2 > N = 7/3; // OK ? `bigint`(N) = `number` is not supported ? expected `bigint` = `bigint` ? error occurred in or before STDIN line 8: `N = 7/3;` >
Note: See
TracTickets for help on using
tickets.
fix with 17d338f3bed1addae0040cf6532f242e8fa28ee2