Skip to content

Commit 03799ab

Browse files
committed
Fix switch fallthrough on memory writes
1 parent a5c9c96 commit 03799ab

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

types/memblock.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,10 +162,13 @@ cell_t sm_MemoryBlockStoreCellToOffset(IPluginContext *pContext, const cell_t *p
162162
switch(params[3]) {
163163
case NumberType_Int8:
164164
*reinterpret_cast<int8_t*>(addr) = value;
165+
break;
165166
case NumberType_Int16:
166167
*reinterpret_cast<int16_t*>(addr) = value;
168+
break;
167169
case NumberType_Int32:
168170
*reinterpret_cast<int32_t*>(addr) = value;
171+
break;
169172
}
170173
return 0;
171174
}

0 commit comments

Comments
 (0)