~mdw
/
catacomb-python
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
algorithms.c: Set required size on GMAC objects.
[catacomb-python]
/
bytestring.c
diff --git
a/bytestring.c
b/bytestring.c
index
d6bd900
..
b3b32de
100644
(file)
--- a/
bytestring.c
+++ b/
bytestring.c
@@
-1,7
+1,5
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id$
- *
* Byte strings
*
* (c) 2004 Straylight/Edgeware
* Byte strings
*
* (c) 2004 Straylight/Edgeware
@@
-68,7
+66,7
@@
static PyObject *bytestring_pynew(PyTypeObject *ty,
const void *xv, *yv; \
const unsigned char *xp, *yp; \
unsigned char *zp; \
const void *xv, *yv; \
const unsigned char *xp, *yp; \
unsigned char *zp; \
-
int xsz, ysz;
\
+
Py_ssize_t xsz, ysz;
\
int i; \
PyObject *rc = 0; \
if (PyObject_AsReadBuffer(x, &xv, &xsz) || \
int i; \
PyObject *rc = 0; \
if (PyObject_AsReadBuffer(x, &xv, &xsz) || \
@@
-90,7
+88,7
@@
BINOP(xor, ^)
const void *xv; \
const unsigned char *xp; \
unsigned char *zp; \
const void *xv; \
const unsigned char *xp; \
unsigned char *zp; \
-
int xsz;
\
+
Py_ssize_t xsz;
\
int i; \
PyObject *rc = 0; \
if (PyObject_AsReadBuffer(x, &xv, &xsz)) goto end; \
int i; \
PyObject *rc = 0; \
if (PyObject_AsReadBuffer(x, &xv, &xsz)) goto end; \
@@
-132,7
+130,7
@@
static PyBufferProcs bytestring_pybuffer;
static PyTypeObject bytestring_pytype_skel = {
PyObject_HEAD_INIT(0) 0, /* Header */
static PyTypeObject bytestring_pytype_skel = {
PyObject_HEAD_INIT(0) 0, /* Header */
- "
catacomb.ByteString",
/* @tp_name@ */
+ "
ByteString",
/* @tp_name@ */
0, /* @tp_basicsize@ */
0, /* @tp_itemsize@ */
0, /* @tp_basicsize@ */
0, /* @tp_itemsize@ */