Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
BTrees
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
BTrees
Commits
fe443dd6
Commit
fe443dd6
authored
Apr 14, 2016
by
Tres Seaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(Attempt to) fix Overflow in tests on Win64.
See:
https://github.com/zopefoundation/BTrees/issues/32
.
parent
96e88e11
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
BTrees/BTreeModuleTemplate.c
BTrees/BTreeModuleTemplate.c
+11
-1
CHANGES.rst
CHANGES.rst
+4
-0
No files found.
BTrees/BTreeModuleTemplate.c
View file @
fe443dd6
...
...
@@ -84,14 +84,24 @@ longlong_check(PyObject *ob)
return
1
;
if
(
PyLong_Check
(
ob
))
{
#if PY_VERSION_HEX < 0x02070000
/* check magnitude */
PY_LONG_LONG
val
=
PyLong_AsLongLong
(
ob
);
if
(
val
==
-
1
&&
PyErr_Occurred
())
return
0
;
goto
overflow
;
#else
int
overflow
;
(
void
)
PyLong_AsLongLongAndOverflow
(
ob
,
&
overflow
);
if
(
overflow
)
goto
overflow
;
#endif
return
1
;
}
return
0
;
overflow:
PyErr_SetString
(
PyExc_ValueError
,
"long integer out of range"
);
return
0
;
}
static
PyObject
*
...
...
CHANGES.rst
View file @
fe443dd6
...
...
@@ -4,6 +4,10 @@
4.3.0 (TBD)
-----------
- Fix unexpected ``OverflowError`` when passing 64bit values to long
keys / values on Win64. See:
https://github.com/zopefoundation/BTrees/issues/32
- When testing ``PURE_PYTHON`` environments under ``tox``, avoid poisoning
the user's global wheel cache.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment