[svn-r12199] Purpose:
bug fix Description: the percent error calculation in h5diff using double precision floating point were causing different results on the release and debug versions of Visual Studio version 6, due to a compiler bug Solution: used single precision (float) Platforms tested: windows linux solaris AIX Misc. update:
This commit is contained in:
@@ -96,7 +96,7 @@ void parse_input(int argc, const char* argv[], const char** fname1, const char**
|
||||
printf("<-d %s> is not a valid option\n", argv[i+1] );
|
||||
usage();
|
||||
}
|
||||
options->delta = atof(argv[i+1]);
|
||||
options->delta = (float) atof(argv[i+1]);
|
||||
i++; /* go to next */
|
||||
}
|
||||
else
|
||||
@@ -114,7 +114,7 @@ void parse_input(int argc, const char* argv[], const char** fname1, const char**
|
||||
printf("<-p %s> is not a valid option\n", argv[i+1] );
|
||||
usage();
|
||||
}
|
||||
options->percent = atof(argv[i+1]);
|
||||
options->percent = (float) atof(argv[i+1]);
|
||||
i++; /* go to next */
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user