Remove vestiges of top down widening.

This commit is contained in:
Christoffer Lerno
2023-09-19 09:27:09 +02:00
committed by Christoffer Lerno
parent e91cb85a66
commit 9eef34049d
16 changed files with 266 additions and 341 deletions

View File

@@ -46,7 +46,7 @@ fn int main(int argc, char **argv)
byte_acc = 0;
bit_num = 0;
}
else if (x == w - 1)
else if (x == (double)w - 1)
{
byte_acc <<= (8 - w % 8);
putchar(byte_acc);

View File

@@ -6,7 +6,7 @@ double[] temparr;
fn double eval_A(int i, int j)
{
return 1.0 / ((i + j) * (i + j + 1) / 2 + i + 1);
return 1.0 / (double)((i + j) * (i + j + 1) / 2 + i + 1);
}
fn void eval_A_times_u(double[] u, double[] au, double[] x)