Skip to content

Commit

Permalink
Change bitwise OR to boolean OR to prevent Chrome ARM issue (#590)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewdunbar authored Jul 11, 2024
1 parent 961c5c7 commit 944608b
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 944608b

Please sign in to comment.