Skip to content

Commit

Permalink
ADApp/pluginSrc/NDFileTIFF.cpp: restore dedicated handling of 32-bit …
Browse files Browse the repository at this point in the history
…integers. Having the 32-bit case fall through to the 64-bit case resulted in corrupted data most of the time, and this restores previous behavior without affecting the new 64-bit support.
  • Loading branch information
Matthew Pearson (mkp) committed Nov 11, 2024
1 parent f48dfbc commit 6e4e98e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ADApp/pluginSrc/NDFileTIFF.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,11 @@ asynStatus NDFileTIFF::openFile(const char *fileName, NDFileOpenMode_t openMode,
case NDAttrInt16:
case NDAttrUInt16:
case NDAttrInt32:
case NDAttrUInt32:
case NDAttrUInt32: {
pAttribute->getValue(attrDataType, &value.i32);
epicsSnprintf(tagString, sizeof(tagString)-1, "%s:%d", attributeName, value.i32);
break;
}
case NDAttrInt64:
case NDAttrUInt64: {
pAttribute->getValue(attrDataType, &value.i64);
Expand Down

0 comments on commit 6e4e98e

Please sign in to comment.