|
From: <kin...@us...> - 2023-09-10 23:16:23
|
Revision: 7156
http://sourceforge.net/p/teem/code/7156
Author: kindlmann
Date: 2023-09-10 23:16:22 +0000 (Sun, 10 Sep 2023)
Log Message:
-----------
more explicitly disallowing block type
Modified Paths:
--------------
teem/trunk/src/nrrd/cc.c
Modified: teem/trunk/src/nrrd/cc.c
===================================================================
--- teem/trunk/src/nrrd/cc.c 2023-09-07 20:57:42 UTC (rev 7155)
+++ teem/trunk/src/nrrd/cc.c 2023-09-10 23:16:22 UTC (rev 7156)
@@ -314,6 +314,9 @@
biffAddf(NRRD, "%s: got invalid target type %d", me, type);
return 1;
}
+ if (nrrdTypeBlock == type) {
+ biffAddf(NRRD, "%s: cannot output CCs in type %s", me, airEnumStr(nrrdType, type));
+ }
if (!(nrrdTypeIsIntegral[type] && nrrdTypeIsUnsigned[nin->type]
&& nrrdTypeSize[type] <= 4)) {
biffAddf(NRRD,
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|