diff options
| author | Brian Kessler <brian.m.kessler@gmail.com> | 2018-11-13 22:51:21 -0700 |
|---|---|---|
| committer | Keith Randall <khr@golang.org> | 2018-11-27 05:04:33 +0000 |
| commit | 979d9027aecf265214a6dcc27fe037bfd70355f2 (patch) | |
| tree | a750937318e7507bfb5797aabb0e8f3b664c5364 /src/plugin/plugin_test.go | |
| parent | 319787a528284aefe23424056a19bda71f7cc2b1 (diff) | |
| download | go-979d9027aecf265214a6dcc27fe037bfd70355f2.tar.xz | |
math/bits: define Div to panic when y<=hi
Div panics when y<=hi because either the quotient overflows
the size of the output or division by zero occurs when y==0.
This provides a uniform behavior for all implementations.
Fixes #28316
Change-Id: If23aeb10e0709ee1a60b7d614afc9103d674a980
Reviewed-on: https://go-review.googlesource.com/c/149517
Reviewed-by: Robert Griesemer <gri@golang.org>
Diffstat (limited to 'src/plugin/plugin_test.go')
0 files changed, 0 insertions, 0 deletions
