|
From: <kin...@us...> - 2023-07-08 14:50:05
|
Revision: 7063
http://sourceforge.net/p/teem/code/7063
Author: kindlmann
Date: 2023-07-08 14:50:03 +0000 (Sat, 08 Jul 2023)
Log Message:
-----------
fixing warnings: isnan isn't C89, and using correct conversion format for unsigned
Modified Paths:
--------------
teem/trunk/src/nrrd/arith.c
teem/trunk/src/nrrd/formatVTK.c
Modified: teem/trunk/src/nrrd/arith.c
===================================================================
--- teem/trunk/src/nrrd/arith.c 2023-07-08 14:43:47 UTC (rev 7062)
+++ teem/trunk/src/nrrd/arith.c 2023-07-08 14:50:03 UTC (rev 7063)
@@ -488,9 +488,9 @@
break;
case 2:
/* two non-finite values */
- if (isnan(A) && isnan(B)) {
+ if (airIsNaN(A) && airIsNaN(B)) {
ret = 0; /* really, no meaningful difference between 2 NaNs */
- } else if (isnan(A) || isnan(B)) {
+ } else if (airIsNaN(A) || airIsNaN(B)) {
/* one NaN and one inf, which seems like a big difference */
ret = maxd;
} else {
Modified: teem/trunk/src/nrrd/formatVTK.c
===================================================================
--- teem/trunk/src/nrrd/formatVTK.c 2023-07-08 14:43:47 UTC (rev 7062)
+++ teem/trunk/src/nrrd/formatVTK.c 2023-07-08 14:50:03 UTC (rev 7063)
@@ -155,7 +155,7 @@
GETLINE(next);
airToUpper(nio->line);
}
- if (1 != sscanf(nio->line, "POINT_DATA %d", &N)) {
+ if (1 != sscanf(nio->line, "POINT_DATA %u", &N)) {
biffAddf(NRRD, "%s: couldn't parse POINT_DATA line (\"%s\")", me, nio->line);
return 1;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|