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
a45ebcac
Commit
a45ebcac
authored
May 22, 2013
by
Tres Seaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try to fix a compilation error on 32-bit mode OS/X.
Fixes #2 (maybe).
parent
41c31f70
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
7 deletions
+3
-7
BTrees/BTreeModuleTemplate.c
BTrees/BTreeModuleTemplate.c
+1
-5
BTrees/_compat.h
BTrees/_compat.h
+0
-2
CHANGES.rst
CHANGES.rst
+2
-0
No files found.
BTrees/BTreeModuleTemplate.c
View file @
a45ebcac
...
...
@@ -99,11 +99,7 @@ longlong_check(PyObject *ob)
static
PyObject
*
longlong_as_object
(
PY_LONG_LONG
val
)
{
static
PY_LONG_LONG
maxint
=
0
;
if
(
maxint
==
0
)
maxint
=
INT_GETMAX
();
if
((
val
>
maxint
)
||
(
val
<
(
-
maxint
-
1
)))
if
((
val
>
LONG_MAX
)
||
(
val
<
LONG_MIN
))
return
PyLong_FromLongLong
(
val
);
return
INT_FROM_LONG
((
long
)
val
);
}
...
...
BTrees/_compat.h
View file @
a45ebcac
...
...
@@ -24,7 +24,6 @@
#define INT_FROM_LONG(x) PyLong_FromLong(x)
#define INT_CHECK(x) PyLong_Check(x)
#define INT_AS_LONG(x) PyLong_AS_LONG(x)
#define INT_GETMAX(x) 2<<31
#define TEXT_FROM_STRING PyUnicode_FromString
#define TEXT_FORMAT PyUnicode_Format
...
...
@@ -39,7 +38,6 @@
#define INT_FROM_LONG(x) PyInt_FromLong(x)
#define INT_CHECK(x) PyInt_Check(x)
#define INT_AS_LONG(x) PyInt_AS_LONG(x)
#define INT_GETMAX(x) PyInt_GetMax(x)
#define TEXT_FROM_STRING PyString_FromString
#define TEXT_FORMAT PyString_Format
...
...
CHANGES.rst
View file @
a45ebcac
...
...
@@ -4,6 +4,8 @@
4.0.7 (unreleased)
------------------
- Issue #2: compilation error on 32-bit mode of OS/X.
- Test ``PURE_PYTHON`` environment variable support: if set, the C
extensions will not be built, imported, or tested.
...
...
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