Now creating the correct internal bignum representation
add_integers returns an integer which by inspection of the internal representation is correct, but the print representation is not correct.
This commit is contained in:
parent
4295b6e57f
commit
d9d789fdd0
5 changed files with 54 additions and 27 deletions
|
|
@ -161,6 +161,9 @@ struct cons_pointer read_number( struct stack_frame *frame,
|
|||
wint_t initial, bool seen_period ) {
|
||||
debug_print( L"entering read_number\n", DEBUG_IO );
|
||||
struct cons_pointer result = NIL;
|
||||
|
||||
/* TODO: accumulator and dividend cannot be `int64_t`s, otherwise we cannot
|
||||
* read bignums. They will have to be Lisp integers. */
|
||||
int64_t accumulator = 0;
|
||||
int64_t dividend = 0;
|
||||
int places_of_decimals = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue