From 6e4e98e7b358e0c0180f64861ebd1c5bc5f7da86 Mon Sep 17 00:00:00 2001 From: "Matthew Pearson (mkp)" Date: Mon, 11 Nov 2024 10:42:04 -0500 Subject: [PATCH] ADApp/pluginSrc/NDFileTIFF.cpp: restore dedicated handling of 32-bit 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. --- ADApp/pluginSrc/NDFileTIFF.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ADApp/pluginSrc/NDFileTIFF.cpp b/ADApp/pluginSrc/NDFileTIFF.cpp index 2ad0d003e..a1f96a341 100644 --- a/ADApp/pluginSrc/NDFileTIFF.cpp +++ b/ADApp/pluginSrc/NDFileTIFF.cpp @@ -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);