Begun work on bignums; changed integer size to 64 bits

I'm fairly sure the size of a long int on my machines is 64 bit anyway, but for portability it needs to be explicit.
This commit is contained in:
Simon Brooke 2018-12-25 13:18:37 +00:00
parent ad9b1cd7f8
commit 6ee9f9b59a
13 changed files with 109 additions and 25 deletions

View file

@ -125,8 +125,8 @@ struct cons_pointer read_continuation( struct stack_frame *frame, FILE * input,
struct cons_pointer read_number( struct stack_frame *frame, FILE * input,
wint_t initial, bool seen_period ) {
struct cons_pointer result = NIL;
long int accumulator = 0;
long int dividend = 0;
int64_t accumulator = 0;
int64_t dividend = 0;
int places_of_decimals = 0;
wint_t c;
fwprintf( stderr, L"read_number starting '%c' (%d)\n", initial, initial );