Skip to content

Commit 8c88fa7

Browse files
FrottyCopilot
andauthored
Update de.peeeq.wurstscript/src/main/java/de/peeeq/wurstscript/translation/imtranslation/ImPrinter.java
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 94c4f32 commit 8c88fa7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • de.peeeq.wurstscript/src/main/java/de/peeeq/wurstscript/translation/imtranslation

de.peeeq.wurstscript/src/main/java/de/peeeq/wurstscript/translation/imtranslation/ImPrinter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ public static void print(ImVarAccess p, Appendable sb, int indent) {
276276
public static String smallHash(Object g) {
277277
int h = g.hashCode();
278278
// avoid negative hashes
279-
h = Math.abs(h);
279+
h = h & Integer.MAX_VALUE;
280280
// take only the last 3 digits
281281
int v = h % 1000;
282282
return Integer.toString(v);

0 commit comments

Comments
 (0)