Skip to content

Commit ebf7fa3

Browse files
committed
fix(jsonFromIOComponentEnum): default to uint8 for unknown
For consistency from previous pre-glaze behavior.
1 parent 33f05c4 commit ebf7fa3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/itkjsonFromIOComponentEnum.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ jsonComponentTypeFromIOComponentEnum(const IOComponentEnum & ioComponent)
9797
return JSONComponentTypesEnum::float64;
9898
case IOComponentEnum::UNKNOWNCOMPONENTTYPE:
9999
// default
100-
return JSONComponentTypesEnum::float32;
100+
return JSONComponentTypesEnum::uint8;
101101
default:
102102
throw std::invalid_argument("Unknown IOComponentEnum");
103103
}

0 commit comments

Comments
 (0)