summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPer Bothner <per@bothner.com>2024-01-21 13:06:40 -0800
committerPer Bothner <per@bothner.com>2024-01-21 13:06:40 -0800
commitbd94091c8fbf1eb3b1c28e1f24ff0944b09aee01 (patch)
tree1893bb45d2a08ab52b6546186a0ccda5bfbeb451
parent3bca673bddc19724f8a25171346e80bd9f5e14e4 (diff)
* UByte.java (toIntNum): Fix copy-paste bug.HEADmaster
-rw-r--r--gnu/math/ChangeLog4
-rw-r--r--gnu/math/UByte.java2
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