We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue #277 changed it to output the UL as an unsigned integer.
However, now when the value is greater than 2^31, it causes a NumberFormatException when reading the XML.
The following 1 line patch fixes the StringUtils to handle the unsigned integer on read:
Index: src/main/java/org/dcm4che3/util/StringUtils.java IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- src/main/java/org/dcm4che3/util/StringUtils.java (date 1576102631000) +++ src/main/java/org/dcm4che3/util/StringUtils.java (date 1576102741064) @@ -195,7 +195,7 @@ public static int parseIS(String s) { return s != null && s.length() != 0 - ? Integer.parseInt(s.charAt(0) == '+' ? s.substring(1) : s) + ? (int) Long.parseLong(s.charAt(0) == '+' ? s.substring(1) : s) : 0; }
The text was updated successfully, but these errors were encountered:
8081cd4
Thanks @ronshapiro7
Sorry, something went wrong.
UL values in XML cause NumberFormatException when > 2^31 fix dcm4che#600
47660da
gunterze
No branches or pull requests
Issue #277 changed it to output the UL as an unsigned integer.
However, now when the value is greater than 2^31, it causes a NumberFormatException when reading the XML.
The following 1 line patch fixes the StringUtils to handle the unsigned integer on read:
The text was updated successfully, but these errors were encountered: