[MINC-users] N3-1.09 bug in src/extracttag.c

Yasunari Tosa tosa@nmr.mgh.harvard.edu
Tue Oct 12 13:10:04 2004


N3-1.09/src/ExtractTag/extracttag.c

long maxtags = -1;
long mintags = 0;

However,

ArgvInfo argTable[] declares them as ARGV_INT as follows:

  {"-mintags", ARGV_INT, (char *) NULL, (char *) &min_tags,
     "Set the minimum number of tag points to be chosen - threshold 
adjusted"},

  {"-maxtags", ARGV_INT, (char *) NULL, (char *) &max_tags,
     "Set the max number of tag points to be chosen - zero for all"},

This bug won't matter when you are compiling under 32 bit (sizeof(int) = 
sizeof(long)), but
it really matters under 64 bit where sizeof(long) = 2 * sizeof(int).

Tosa

-- 
Yasunari Tosa, Ph.D.               Email: tosa@nmr.mgh.harvard.edu
NMR Ctr, Mass. General Hospital    TEL: 617-726-4050 
Building 149, 13th Street
Charlestown, MA 02129
USA