Skip to content

Commit ed60e72

Browse files
committed
Fix compilation in MEX interface with GCC 13
1 parent 1e8b679 commit ed60e72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mex/gemmi.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ class MexFunction : public matlab::mex::Function {
162162
}
163163
const matlab::data::TypedArray<char16_t> data = inStruct[0][field];
164164
if (std::string(field) == "split") {
165-
switch (data[0]) {
165+
switch ((char)data[0]) {
166166
case 'n':
167167
options->splitType = splittingStrategy::roundToNearest;
168168
break;
@@ -175,7 +175,7 @@ class MexFunction : public matlab::mex::Function {
175175
break;
176176
}
177177
} else if (std::string(field) == "acc") {
178-
switch (data[0]) {
178+
switch ((char)data[0]) {
179179
case 'f':
180180
options->accType = accumulationStrategy::floatingPoint;
181181
break;

0 commit comments

Comments
 (0)