diff options
-rw-r--r-- | gnu/math/ChangeLog | 4 | ||||
-rw-r--r-- | gnu/math/UByte.java | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gnu/math/ChangeLog b/gnu/math/ChangeLog index 673118c07..0e235eb75 100644 --- a/gnu/math/ChangeLog +++ b/gnu/math/ChangeLog @@ -1,3 +1,7 @@ +2024-01-21 Per Bothner <per@bothner.com> + + * UByte.java (toIntNum): Fix copy-paste bug. + 2020-03-18 Per Bothner <per@bothner.com> * FixedRealFormat.java: Better handling for Complex/Quaternions. diff --git a/gnu/math/UByte.java b/gnu/math/UByte.java index 6333e8969..40332aa7c 100644 --- a/gnu/math/UByte.java +++ b/gnu/math/UByte.java @@ -10,7 +10,7 @@ public class UByte extends UnsignedPrim implements Comparable<UByte> { public int intValue() { return ival & 0xFF; } - public IntNum toIntNum() { return IntNum.valueOf(ival & 0xFFFF); } + public IntNum toIntNum() { return IntNum.valueOf(ival & 0xFF); } public boolean equals(Object obj) { return obj instanceof UByte |