Skip to content

Commit

Permalink
Describe negative bit shift counts in NEWS.md (JuliaLang#18188)
Browse files Browse the repository at this point in the history
  • Loading branch information
eschnett authored and mfasi committed Sep 5, 2016
1 parent 42d6e57 commit 1dd9f3a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,12 @@ This section lists changes that do not have deprecation warnings.
* `map` on a dictionary now expects a function that expects and returns a `Pair`.
The result is now another dictionary instead of an array ([#16622]).

* Bit shift operations (i.e. `<<`, `>>`, and `>>>`) now handle
negative shift counts differently: Negative counts are interpreted
as shifts in the opposite direction. For example, `4 >> -1 == 4 <<
+1 == 8`. Previously, negative counts would implicitly overflow to
large positive counts, always yielding either `0` or `-1`.

Library improvements
--------------------

Expand Down

0 comments on commit 1dd9f3a

Please sign in to comment.