Skip to content

Commit 7fbbc23

Browse files
committed
Add float and double cases where missing in InfoObjects
1 parent f744889 commit 7fbbc23

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Source/Processors/Channel/InfoObjects.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,8 @@ size_t EventChannel::getTypeByteSize(EventChannel::EventChannelTypes type)
407407
case UINT32_ARRAY: return sizeof(uint32);
408408
case INT64_ARRAY: return sizeof(int64);
409409
case UINT64_ARRAY: return sizeof(uint64);
410+
case FLOAT_ARRAY: return sizeof(float);
411+
case DOUBLE_ARRAY: return sizeof(double);
410412
default: return sizeof(char);
411413
}
412414
}
@@ -426,6 +428,8 @@ void EventChannel::setDefaultNameAndDescription()
426428
case UINT32_ARRAY: name = "UINT32"; break;
427429
case INT64_ARRAY: name = "INT64"; break;
428430
case UINT64_ARRAY: name = "UINT64"; break;
431+
case FLOAT_ARRAY: name = "FLOAT"; break;
432+
case DOUBLE_ARRAY: name = "DOUBLE"; break;
429433
default:
430434
setName("INVALID");
431435
setDescription("Invalid channel");

0 commit comments

Comments
 (0)