Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
ZODB
Commits
8d893238
Commit
8d893238
authored
Oct 10, 2001
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use PyInt_AS_LONG after explicit PyInt_Check().
parent
28e672f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/BTrees/intkeymacros.h
src/BTrees/intkeymacros.h
+2
-2
No files found.
src/BTrees/intkeymacros.h
View file @
8d893238
#define KEYMACROS_H "$Id: intkeymacros.h,v 1.
6 2001/04/03 15:02:17 jim
Exp $\n"
#define KEYMACROS_H "$Id: intkeymacros.h,v 1.
7 2001/10/10 20:36:58 jeremy
Exp $\n"
#define KEY_TYPE int
#define KEY_CHECK PyInt_Check
...
...
@@ -9,6 +9,6 @@
#define COPY_KEY(KEY, E) (KEY=(E))
#define COPY_KEY_TO_OBJECT(O, K) O=PyInt_FromLong(K)
#define COPY_KEY_FROM_ARG(TARGET, ARG, STATUS) \
if (PyInt_Check(ARG)) TARGET=PyInt_A
sLong
(ARG); else { \
if (PyInt_Check(ARG)) TARGET=PyInt_A
S_LONG
(ARG); else { \
PyErr_SetString(PyExc_TypeError, "expected integer key"); \
(STATUS)=0; (TARGET)=0; }
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