Commit 92413962 authored by Tres Seaver's avatar Tres Seaver

Suppressed warnings about signedness of characters when compiling under

GCC 4.0.x.

See http://www.zope.org/Collectors/Zope/2027.
parent c04b9daf
...@@ -62,6 +62,9 @@ ZODB 3.4 release. These include: ...@@ -62,6 +62,9 @@ ZODB 3.4 release. These include:
Persistent Persistent
---------- ----------
- (3.6b7) Suppressed warnings about signedness of characters when
compiling under GCC 4.0.x. See http://www.zope.org/Collectors/Zope/2027.
- (3.6a4) ZODB 3.6 introduces a change to the basic behavior of Persistent - (3.6a4) ZODB 3.6 introduces a change to the basic behavior of Persistent
objects in a particular end case. Before ZODB 3.6, setting objects in a particular end case. Before ZODB 3.6, setting
``obj._p_changed`` to a true value when ``obj`` was a ghost was ignored: ``obj._p_changed`` to a true value when ``obj`` was a ghost was ignored:
...@@ -150,6 +153,9 @@ Tools ...@@ -150,6 +153,9 @@ Tools
BTrees BTrees
------ ------
- (3.6b7) Suppressed warnings about signedness of characters when
compiling under GCC 4.0.x. See http://www.zope.org/Collectors/Zope/2027.
- (3.6a1) BTrees and Buckets now implement the ``setdefault()`` and ``pop()`` - (3.6a1) BTrees and Buckets now implement the ``setdefault()`` and ``pop()``
methods. These are exactly like Python's dictionary methods of the same methods. These are exactly like Python's dictionary methods of the same
names, except that ``setdefault()`` requires both arguments (and Python is names, except that ``setdefault()`` requires both arguments (and Python is
......
...@@ -45,7 +45,7 @@ typedef unsigned char char6[6]; ...@@ -45,7 +45,7 @@ typedef unsigned char char6[6];
#define DECREF_KEY(KEY) #define DECREF_KEY(KEY)
#define INCREF_KEY(k) #define INCREF_KEY(k)
#define COPY_KEY(KEY, E) (*(KEY)=*(E), (KEY)[1]=(E)[1]) #define COPY_KEY(KEY, E) (*(KEY)=*(E), (KEY)[1]=(E)[1])
#define COPY_KEY_TO_OBJECT(O, K) O=PyString_FromStringAndSize(K,2) #define COPY_KEY_TO_OBJECT(O, K) O=PyString_FromStringAndSize((const char*)K,2)
#define COPY_KEY_FROM_ARG(TARGET, ARG, STATUS) \ #define COPY_KEY_FROM_ARG(TARGET, ARG, STATUS) \
if (KEY_CHECK(ARG)) memcpy(TARGET, PyString_AS_STRING(ARG), 2); else { \ if (KEY_CHECK(ARG)) memcpy(TARGET, PyString_AS_STRING(ARG), 2); else { \
PyErr_SetString(PyExc_TypeError, "expected two-character string key"); \ PyErr_SetString(PyExc_TypeError, "expected two-character string key"); \
...@@ -59,7 +59,7 @@ typedef unsigned char char6[6]; ...@@ -59,7 +59,7 @@ typedef unsigned char char6[6];
#define DECREF_VALUE(k) #define DECREF_VALUE(k)
#define INCREF_VALUE(k) #define INCREF_VALUE(k)
#define COPY_VALUE(V, E) (memcpy(V, E, 6)) #define COPY_VALUE(V, E) (memcpy(V, E, 6))
#define COPY_VALUE_TO_OBJECT(O, K) O=PyString_FromStringAndSize(K,6) #define COPY_VALUE_TO_OBJECT(O, K) O=PyString_FromStringAndSize((const char*)K,6)
#define COPY_VALUE_FROM_ARG(TARGET, ARG, STATUS) \ #define COPY_VALUE_FROM_ARG(TARGET, ARG, STATUS) \
if ((PyString_Check(ARG) && PyString_GET_SIZE(ARG)==6)) \ if ((PyString_Check(ARG) && PyString_GET_SIZE(ARG)==6)) \
memcpy(TARGET, PyString_AS_STRING(ARG), 6); else { \ memcpy(TARGET, PyString_AS_STRING(ARG), 6); else { \
......
...@@ -218,7 +218,7 @@ TimeStamp_timeTime(TimeStamp *self) ...@@ -218,7 +218,7 @@ TimeStamp_timeTime(TimeStamp *self)
static PyObject * static PyObject *
TimeStamp_raw(TimeStamp *self) TimeStamp_raw(TimeStamp *self)
{ {
return PyString_FromStringAndSize(self->data, 8); return PyString_FromStringAndSize((const char*)self->data, 8);
} }
static PyObject * static PyObject *
...@@ -261,7 +261,7 @@ TimeStamp_laterThan(TimeStamp *self, PyObject *obj) ...@@ -261,7 +261,7 @@ TimeStamp_laterThan(TimeStamp *self, PyObject *obj)
new[i] = 0; new[i] = 0;
else { else {
new[i]++; new[i]++;
return TimeStamp_FromString(new); return TimeStamp_FromString((const char*)new);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment