From d14155b1bdccfe0acc0efab4c7986db332e6e191 Mon Sep 17 00:00:00 2001 From: Erik Schnetter Date: Tue, 23 Aug 2016 08:00:14 -0400 Subject: [PATCH] Describe negative bit shift counts in NEWS.md (#18188) --- NEWS.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/NEWS.md b/NEWS.md index 773f693c1d33d..530777425f5b8 100644 --- a/NEWS.md +++ b/NEWS.md @@ -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 --------------------