diff options
author | Tom Tromey <tom@tromey.com> | 2016-05-23 10:58:51 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2016-05-24 10:05:58 -0600 |
commit | e2b7f516fc688975ea22ad3cf2066c6972454fdc (patch) | |
tree | 62371f526ae6582a1b5f9b5e347977f32f0c7776 /Makefile.tpl | |
parent | 1957f6b89f3db02d51e3e3361de6af073a03f19d (diff) | |
download | gdb-e2b7f516fc688975ea22ad3cf2066c6972454fdc.zip gdb-e2b7f516fc688975ea22ad3cf2066c6972454fdc.tar.gz gdb-e2b7f516fc688975ea22ad3cf2066c6972454fdc.tar.bz2 |
add nb_inplace_divide for python 2
Python 2's PyNumberMethods has nb_inplace_divide, but Python 3 does
not. This patch adds it for Python 2.
This buglet didn't cause much fallout because the only non-NULL entry
in value_object_as_number after this is for valpy_divide; and the
missing slot caused it to slide up to nb_floor_divide (where
nb_true_divide was intended).
2016-05-24 Tom Tromey <tom@tromey.com>
* python/py-value.c (value_object_as_number): Add
nb_inplace_divide for Python 2.
Diffstat (limited to 'Makefile.tpl')
0 files changed, 0 insertions, 0 deletions