commit | 8460e604b9de9da5834c9f198cadf9dca4b05cac | [log] [tgz] |
---|---|---|
author | Giovanni Bajo <rasky@develer.com> | Thu Mar 15 15:16:23 2018 +0100 |
committer | Nigel Tao <nigeltao@golang.org> | Wed Mar 21 21:57:51 2018 +0000 |
tree | 915876953612313ea01c6303e2aa52ec96f5e7d6 | |
parent | 9673cff68816794f1cd927a1e58760e4d41c393b [diff] |
exp/shiny: fix a typo that prevented correct rounding Change-Id: Id1c01d4e4b5c69fde195f1e56ccbd6760a8dbccc Reviewed-on: https://go-review.googlesource.com/100936 Reviewed-by: Nigel Tao <nigeltao@golang.org>
diff --git a/shiny/iconvg/buffer.go b/shiny/iconvg/buffer.go index 5bdad2a..44daf54 100644 --- a/shiny/iconvg/buffer.go +++ b/shiny/iconvg/buffer.go
@@ -164,7 +164,7 @@ // Round the fractional bits (the low 23 bits) to the nearest multiple of // 4, being careful not to overflow into the upper bits. v := u & 0x007fffff - if v < 0x007fffffe { + if v < 0x007ffffe { v += 2 } u = (u & 0xff800000) | v