Skip to content

Commit

Permalink
Merge pull request issp-center-dev#125 from issp-center-dev/fix_sign
Browse files Browse the repository at this point in the history
change long int to long unsigned int
  • Loading branch information
tmisawa authored Apr 14, 2022
2 parents 8e3969d + 422fc05 commit cf67eb2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion src/CalcSpectrumByBiCG.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,9 @@ void InitShadowRes(
double complex *v4//!<[out] [CheckList::idim_max] shadow residual vector
)
{
long int idim, iv;

long int iv;
long unsigned int idim;
int mythread;
double dnorm;
/*
Expand Down
6 changes: 3 additions & 3 deletions src/mltplyHubbard.c
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ double complex pairhopp(
double complex *tmp_v1,//!<[in] Input producted vector
struct BindStruct *X//!<[inout]
) {
long int j;
long unsigned int j;
long unsigned int i_max = X->Large.i_max;
long unsigned int off = 0;
double complex dam_pr = 0.0;
Expand Down Expand Up @@ -771,7 +771,7 @@ double complex GC_pairhopp(
double complex *tmp_v1,//!<[in] Input producted vector
struct BindStruct *X//!<[inout]
) {
long int j;
long unsigned int j;
long unsigned int i_max = X->Large.i_max;
long unsigned int off = 0;
double complex dam_pr = 0.0;
Expand All @@ -793,7 +793,7 @@ double complex GC_exchange(
double complex *tmp_v1,
struct BindStruct *X
) {
long int j;
long unsigned int j;
long unsigned int i_max = X->Large.i_max;
long unsigned int off = 0;
double complex dam_pr = 0.0;
Expand Down
2 changes: 1 addition & 1 deletion src/mltplySpin.c
Original file line number Diff line number Diff line change
Expand Up @@ -1000,7 +1000,7 @@ double complex GC_pairlift_spin(
double complex *tmp_v1,//!<[in] Input producted vector
struct BindStruct *X//!<[inout]
) {
long int j;
long unsigned int j;
long unsigned int i_max = X->Large.i_max;
long unsigned int off = 0;
double complex dam_pr = 0;
Expand Down

0 comments on commit cf67eb2

Please sign in to comment.