GP-0: Fixing bit twiddling in GuidUtil.getVersionedGuidString()

(Closes #9582)
This commit is contained in:
Ryan Kurtz
2026-09-08 06:50:55 -04:00
parent 477291372d
commit b0445ec102

View File

@@ -283,9 +283,9 @@ public class GuidUtil {
// retVal = retVal.toUpperCase();
guidString += " v";
versionData[0] = (bytes[17] << 8) + bytes[16];
versionData[0] = (Byte.toUnsignedInt(bytes[17]) << 8) | Byte.toUnsignedInt(bytes[16]);
guidString += Integer.toString(versionData[0]) + ".";
versionData[1] = (bytes[19] << 8) + bytes[18];
versionData[1] = (Byte.toUnsignedInt(bytes[19]) << 8) | Byte.toUnsignedInt(bytes[18]);
guidString += Integer.toString(versionData[1]);
if (validate && !NewGuid.isOKForGUID(bytes, 0)) {