Skip to content
Prev Previous commit
Next Next commit
Change ints to unsigned ints in split_op.c
  • Loading branch information
Gathros committed Aug 5, 2018
commit 0b7dce198dba0ba7410998d25512f86599740712
10 changes: 5 additions & 5 deletions contents/split-operator_method/code/c/split_op.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@

struct params {
double xmax;
int res;
unsigned int res;
double dt;
int timesteps;
unsigned int timesteps;
double dx;
double *x;
double dk;
Expand Down Expand Up @@ -48,8 +48,8 @@ void fft(double complex *x, int n, bool inverse) {
}
}

void init_params(struct params *par, double xmax, int res, double dt,
int timesteps, bool im) {
void init_params(struct params *par, double xmax, unsigned int res, double dt,
unsigned int timesteps, bool im) {

par->xmax = xmax;
par->res = res;
Expand Down Expand Up @@ -207,4 +207,4 @@ int main() {
free_operators(opr);

return 0;
}
}