Skip to content

Commit

Permalink
Change bitwise OR to boolean OR to prevent Chrome ARM issue
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewdunbar committed Jun 18, 2024
1 parent a6e932a commit c8f22ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion upickle/core/templates/ElemUtils.scala
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ object ElemUtils{
if (i >= len) false
else {
val c2 = s.charAt(i)
if (c2 < ' ' | c2 == '"' | c2 == '\\') false
if (c2 < ' ' || c2 == '"' || c2 == '\\') false
else {
arr(arrOffset + i - i0) = c2.toElem
i += 1
Expand Down

0 comments on commit c8f22ab

Please sign in to comment.