Skip to content

Commit

Permalink
make count an integer
Browse files Browse the repository at this point in the history
  • Loading branch information
uecker committed Jun 19, 2024
1 parent 6028121 commit a12e825
Show file tree
Hide file tree
Showing 16 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion src/bitmask.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ static const char help_str[] = "Convert between a bitmask and set of dimensions.

int main_bitmask(int argc, char* argv[argc])
{
long count = 0;
int count = 0;
unsigned long* dims = NULL;

struct arg_s args[] = {
Expand Down
2 changes: 1 addition & 1 deletion src/casorati.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ static const char help_str[] = "Casorati matrix with kernel (kern1, ..., kernN)

int main_casorati(int argc, char* argv[argc])
{
long count = 0;
int count = 0;
unsigned int* dims = NULL;
unsigned int* kerns = NULL;
const char* in_file = NULL;
Expand Down
2 changes: 1 addition & 1 deletion src/copy.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ static const char help_str[] = "Copy an array (to a given position in the output

int main_copy(int argc, char* argv[argc])
{
long count = 0;
int count = 0;
long* dims = NULL;
long* poss = NULL;
const char* in_file = NULL;
Expand Down
2 changes: 1 addition & 1 deletion src/extract.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ static const char help_str[] = "Extracts a sub-array along dims from index start

int main_extract(int argc, char* argv[argc])
{
long count = 0;
int count = 0;
long* dims = NULL;
long* starts = NULL;
long* ends = NULL;
Expand Down
4 changes: 2 additions & 2 deletions src/join.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ static const char help_str[] =

int main_join(int argc, char* argv[argc])
{
long count = 0;
int count = 0;
int dim = -1;
const char** in_files = NULL;
const char* out_file = NULL;
Expand Down Expand Up @@ -74,7 +74,7 @@ int main_join(int argc, char* argv[argc])

assert(count > 1);

int len = strlen(out_file);
int len = (int)strlen(out_file);
char buf[len + 5];
strcpy(buf, out_file);
strcat(buf, ".cfl");
Expand Down
2 changes: 1 addition & 1 deletion src/misc/opts.h
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ struct arg_s {

bool required;
enum ARG_TYPE arg_type;
long* count;
int* count;
int nargs;
struct arg_single_s* arg;
};
Expand Down
2 changes: 1 addition & 1 deletion src/multicfl.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ int main_multicfl(int argc, char* argv[argc])
OPT_SET('s', &separate, "separate"),
};

long count = 0;
int count = 0;
const char** cfl_files = NULL;

struct arg_s args[] = {
Expand Down
2 changes: 1 addition & 1 deletion src/ones.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ static const char help_str[] = "Create an array filled with ones with {dims} dim

int main_ones(int argc, char* argv[argc])
{
long count = 0;
int count = 0;
long N = -1;
long* dims = NULL;

Expand Down
2 changes: 1 addition & 1 deletion src/poly.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ int main_poly(int argc, char* argv[argc])
{
int L = -1;
int N = -1;
long count = 0;
int count = 0;
float* as = NULL;
const char* out_file = NULL;

Expand Down
2 changes: 1 addition & 1 deletion src/reshape.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ static const char help_str[] = "Reshape selected dimensions.";
int main_reshape(int argc, char* argv[argc])
{
unsigned long flags = 0;
long count = 0;
int count = 0;
long* dims = NULL;
const char* in_file = NULL;
const char* out_file = NULL;
Expand Down
2 changes: 1 addition & 1 deletion src/resize.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ static const char help_str[] = "Resizes an array along dimensions to sizes by tr

int main_resize(int argc, char* argv[argc])
{
long count = 0;
int count = 0;
unsigned int* dims = NULL;
unsigned int* sizes = NULL;

Expand Down
2 changes: 1 addition & 1 deletion src/slice.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ static const char help_str[] = "Extracts a slice from positions along dimensions

int main_slice(int argc, char* argv[argc])
{
long count = 0;
int count = 0;
long* dims = NULL;
long* poss = NULL;

Expand Down
2 changes: 1 addition & 1 deletion src/tensorflow.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ static const char help_str[] =

int main_tensorflow(int argc, char* argv[argc])
{
long count = 0;
int count = 0;
const char* graph = NULL;
const char* key = NULL;

Expand Down
2 changes: 1 addition & 1 deletion src/vec.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ static const char help_str[] = "Create a vector of values.";

int main_vec(int argc, char* argv[argc])
{
long count = 0;
int count = 0;
complex float* vals = NULL;
const char* out_file = NULL;

Expand Down
2 changes: 1 addition & 1 deletion src/wavelet.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ static const char help_str[] = "Perform wavelet transform.";
int main_wavelet(int argc, char* argv[argc])
{
unsigned long flags = 0;
long count = 0;
int count = 0;
long* adims = NULL;
const char* in_file = NULL;
const char* out_file = NULL;
Expand Down
2 changes: 1 addition & 1 deletion src/zeros.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ static const char help_str[] = "Create a zero-filled array with {dims} dimension

int main_zeros(int argc, char* argv[argc])
{
long count = 0;
int count = 0;
long N = -1;
long* dims = NULL;

Expand Down

0 comments on commit a12e825

Please sign in to comment.