Skip to content

Commit 53f295c

Browse files
DimitriPapadopouloshjmjohnson
authored andcommitted
Typos found by codespell
(latest version of codespell)
1 parent b92fb26 commit 53f295c

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

nifti2/nifti2_io.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -868,7 +868,7 @@ int nifti_image_load_bricks( nifti_image * nim , int64_t nbricks,
868868

869869
if( rv != 0 ){
870870
nifti_free_NBL( NBL ); /* failure! */
871-
NBL->nbricks = 0; /* repetative, but clear */
871+
NBL->nbricks = 0; /* repetitive, but clear */
872872
}
873873

874874
if( slist ){ free(slist); free(sindex); }
@@ -4723,7 +4723,7 @@ nifti_image* nifti_convert_n1hdr2nim(nifti_1_header nhdr, const char * fname)
47234723
if( nhdr.dim[ii] <= 0 ) nhdr.dim[ii] = 1 ;
47244724

47254725
/* fix any remaining bad dim[] values, so garbage does not propagate */
4726-
/* (only values 0 or 1 seem rational, otherwise set to arbirary 1) */
4726+
/* (only values 0 or 1 seem rational, otherwise set to arbitrary 1) */
47274727
for( ii=nhdr.dim[0]+1 ; ii <= 7 ; ii++ )
47284728
if( nhdr.dim[ii] != 1 && nhdr.dim[ii] != 0) nhdr.dim[ii] = 1 ;
47294729

@@ -5002,7 +5002,7 @@ nifti_image* nifti_convert_n2hdr2nim(nifti_2_header nhdr, const char * fname)
50025002
if( nhdr.dim[ii] <= 0 ) nhdr.dim[ii] = 1 ;
50035003

50045004
/* fix any remaining bad dim[] values, so garbage does not propagate */
5005-
/* (only values 0 or 1 seem rational, otherwise set to arbirary 1) */
5005+
/* (only values 0 or 1 seem rational, otherwise set to arbitrary 1) */
50065006
for( ii=nhdr.dim[0]+1 ; ii <= 7 ; ii++ )
50075007
if( nhdr.dim[ii] != 1 && nhdr.dim[ii] != 0) nhdr.dim[ii] = 1 ;
50085008

nifti2/nifti2_io.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@ typedef struct {
696696
char const * const name; /* text string to match #define */
697697
} nifti_type_ele;
698698

699-
#undef LNI_FERR /* local nifti file error, to be compact and repetative */
699+
#undef LNI_FERR /* local nifti file error, to be compact and repetitive */
700700
#define LNI_FERR(func,msg,file) \
701701
fprintf(stderr,"** ERROR (%s): %s '%s'\n",func,msg,file)
702702

nifti2/nifti_tool.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ int main( int argc, char * argv[] )
289289
if((opts.swap_hdr || opts.swap_ana || opts.swap_old )
290290
&& ((rv = act_swap_hdrs (&opts)) != 0) ) FREE_RETURN(rv);
291291

292-
/* if a diff, return wither a difference exists (like the UNIX command) */
292+
/* if a diff, return whether, a difference exists (like the UNIX command) */
293293
if( opts.diff_hdr && ((rv = act_diff_hdrs (&opts)) != 0) ) FREE_RETURN(rv);
294294
if( opts.diff_hdr1 && ((rv = act_diff_hdr1s(&opts)) != 0) ) FREE_RETURN(rv);
295295
if( opts.diff_hdr2 && ((rv = act_diff_hdr2s(&opts)) != 0) ) FREE_RETURN(rv);

nifticdf/nifticdf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9417,7 +9417,7 @@ int ipmpar(const int *i)
94179417
FLOATING-POINT NUMBERS.
94189418
94199419
IT IS ASSUMED THAT THE SINGLE AND DOUBLE PRECISION FLOATING
9420-
POINT ARITHMETICS HAVE THE SAME BASE, SAY B, AND THAT THE
9420+
POINT ARITHMETIC HAVE THE SAME BASE, SAY B, AND THAT THE
94219421
NONZERO NUMBERS ARE REPRESENTED IN THE FORM
94229422
94239423
SIGN (B**E) * (X(1)/B + ... + X(M)/B**M)

niftilib/nifti1_io.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,7 @@ int nifti_image_load_bricks( nifti_image * nim , int nbricks,
771771

772772
if( rv != 0 ){
773773
nifti_free_NBL( NBL ); /* failure! */
774-
NBL->nbricks = 0; /* repetative, but clear */
774+
NBL->nbricks = 0; /* repetitive, but clear */
775775
}
776776

777777
if( slist ){ free(slist); free(sindex); }
@@ -3676,7 +3676,7 @@ nifti_image* nifti_convert_nhdr2nim(struct nifti_1_header nhdr,
36763676
if( nhdr.dim[ii] <= 0 ) nhdr.dim[ii] = 1 ;
36773677

36783678
/* fix any remaining bad dim[] values, so garbage does not propagate */
3679-
/* (only values 0 or 1 seem rational, otherwise set to arbirary 1) */
3679+
/* (only values 0 or 1 seem rational, otherwise set to arbitrary 1) */
36803680
for( ii=nhdr.dim[0]+1 ; ii <= 7 ; ii++ )
36813681
if( nhdr.dim[ii] != 1 && nhdr.dim[ii] != 0) nhdr.dim[ii] = 1 ;
36823682

niftilib/nifti1_io.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ typedef struct {
515515
char const * const name; /* text string to match #define */
516516
} nifti_type_ele;
517517

518-
#undef LNI_FERR /* local nifti file error, to be compact and repetative */
518+
#undef LNI_FERR /* local nifti file error, to be compact and repetitive */
519519
#define LNI_FERR(func,msg,file) \
520520
fprintf(stderr,"** ERROR (%s): %s '%s'\n",func,msg,file)
521521

niftilib/nifti1_tool.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ int main( int argc, char * argv[] )
229229
if((opts.swap_hdr || opts.swap_ana || opts.swap_old )
230230
&& ((rv = act_swap_hdrs (&opts)) != 0) ) FREE_RETURN(rv);
231231

232-
/* if a diff, return wither a difference exists (like the UNIX command) */
232+
/* if a diff, return whether, a difference exists (like the UNIX command) */
233233
if( opts.diff_hdr && ((rv = act_diff_hdrs(&opts)) != 0) ) FREE_RETURN(rv);
234234
if( opts.diff_nim && ((rv = act_diff_nims(&opts)) != 0) ) FREE_RETURN(rv);
235235

0 commit comments

Comments
 (0)