mirror of
https://github.com/python/cpython.git
synced 2025-07-25 04:04:13 +00:00
Some of the types are signed 8 bit ints. Fixed.
This commit is contained in:
parent
53bafd97d0
commit
97ed907df6
2 changed files with 10 additions and 10 deletions
|
@ -786,7 +786,7 @@ static PyObject *wasteObj_WEGetOffset(_self, _args)
|
||||||
_rv = WEGetOffset(&thePoint,
|
_rv = WEGetOffset(&thePoint,
|
||||||
&edge,
|
&edge,
|
||||||
_self->ob_itself);
|
_self->ob_itself);
|
||||||
_res = Py_BuildValue("lb",
|
_res = Py_BuildValue("lB",
|
||||||
_rv,
|
_rv,
|
||||||
edge);
|
edge);
|
||||||
return _res;
|
return _res;
|
||||||
|
@ -825,7 +825,7 @@ static PyObject *wasteObj_WEFindWord(_self, _args)
|
||||||
WEEdge edge;
|
WEEdge edge;
|
||||||
SInt32 wordStart;
|
SInt32 wordStart;
|
||||||
SInt32 wordEnd;
|
SInt32 wordEnd;
|
||||||
if (!PyArg_ParseTuple(_args, "lb",
|
if (!PyArg_ParseTuple(_args, "lB",
|
||||||
&offset,
|
&offset,
|
||||||
&edge))
|
&edge))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -849,7 +849,7 @@ static PyObject *wasteObj_WEFindLine(_self, _args)
|
||||||
WEEdge edge;
|
WEEdge edge;
|
||||||
SInt32 lineStart;
|
SInt32 lineStart;
|
||||||
SInt32 lineEnd;
|
SInt32 lineEnd;
|
||||||
if (!PyArg_ParseTuple(_args, "lb",
|
if (!PyArg_ParseTuple(_args, "lB",
|
||||||
&offset,
|
&offset,
|
||||||
&edge))
|
&edge))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -873,7 +873,7 @@ static PyObject *wasteObj_WEFindParagraph(_self, _args)
|
||||||
WEEdge edge;
|
WEEdge edge;
|
||||||
SInt32 paragraphStart;
|
SInt32 paragraphStart;
|
||||||
SInt32 paragraphEnd;
|
SInt32 paragraphEnd;
|
||||||
if (!PyArg_ParseTuple(_args, "lb",
|
if (!PyArg_ParseTuple(_args, "lB",
|
||||||
&offset,
|
&offset,
|
||||||
&edge))
|
&edge))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -927,7 +927,7 @@ static PyObject *wasteObj_WEGetAlignment(_self, _args)
|
||||||
if (!PyArg_ParseTuple(_args, ""))
|
if (!PyArg_ParseTuple(_args, ""))
|
||||||
return NULL;
|
return NULL;
|
||||||
_rv = WEGetAlignment(_self->ob_itself);
|
_rv = WEGetAlignment(_self->ob_itself);
|
||||||
_res = Py_BuildValue("b",
|
_res = Py_BuildValue("B",
|
||||||
_rv);
|
_rv);
|
||||||
return _res;
|
return _res;
|
||||||
}
|
}
|
||||||
|
@ -938,7 +938,7 @@ static PyObject *wasteObj_WESetAlignment(_self, _args)
|
||||||
{
|
{
|
||||||
PyObject *_res = NULL;
|
PyObject *_res = NULL;
|
||||||
WEAlignment alignment;
|
WEAlignment alignment;
|
||||||
if (!PyArg_ParseTuple(_args, "b",
|
if (!PyArg_ParseTuple(_args, "B",
|
||||||
&alignment))
|
&alignment))
|
||||||
return NULL;
|
return NULL;
|
||||||
WESetAlignment(alignment,
|
WESetAlignment(alignment,
|
||||||
|
@ -2273,7 +2273,7 @@ void initwaste()
|
||||||
waste_Error = PyMac_GetOSErrException();
|
waste_Error = PyMac_GetOSErrException();
|
||||||
if (waste_Error == NULL ||
|
if (waste_Error == NULL ||
|
||||||
PyDict_SetItemString(d, "Error", waste_Error) != 0)
|
PyDict_SetItemString(d, "Error", waste_Error) != 0)
|
||||||
Py_FatalError("can't initialize waste.Error");
|
return;
|
||||||
WEO_Type.ob_type = &PyType_Type;
|
WEO_Type.ob_type = &PyType_Type;
|
||||||
Py_INCREF(&WEO_Type);
|
Py_INCREF(&WEO_Type);
|
||||||
if (PyDict_SetItemString(d, "WEOType", (PyObject *)&WEO_Type) != 0)
|
if (PyDict_SetItemString(d, "WEOType", (PyObject *)&WEO_Type) != 0)
|
||||||
|
@ -2285,7 +2285,7 @@ void initwaste()
|
||||||
|
|
||||||
callbackdict = PyDict_New();
|
callbackdict = PyDict_New();
|
||||||
if (callbackdict == NULL || PyDict_SetItemString(d, "callbacks", callbackdict) != 0)
|
if (callbackdict == NULL || PyDict_SetItemString(d, "callbacks", callbackdict) != 0)
|
||||||
Py_FatalError("can't initialize Waste.callbackdict");
|
return;
|
||||||
upp_new_handler = NewWENewObjectProc(my_new_handler);
|
upp_new_handler = NewWENewObjectProc(my_new_handler);
|
||||||
upp_dispose_handler = NewWEDisposeObjectProc(my_dispose_handler);
|
upp_dispose_handler = NewWEDisposeObjectProc(my_dispose_handler);
|
||||||
upp_draw_handler = NewWEDrawObjectProc(my_draw_handler);
|
upp_draw_handler = NewWEDrawObjectProc(my_draw_handler);
|
||||||
|
|
|
@ -37,8 +37,8 @@ OptStScrpHandle = OpaqueByValueType("StScrpHandle", "OptResObj")
|
||||||
|
|
||||||
WEStyleMode = Type("WEStyleMode", "H")
|
WEStyleMode = Type("WEStyleMode", "H")
|
||||||
WEActionKind = Type("WEActionKind", "h")
|
WEActionKind = Type("WEActionKind", "h")
|
||||||
WEAlignment = Type("WEAlignment", "b")
|
WEAlignment = Type("WEAlignment", "B")
|
||||||
WEEdge = Type("WEEdge", "b")
|
WEEdge = Type("WEEdge", "B")
|
||||||
WEDirection = Type("WEDirection", "h")
|
WEDirection = Type("WEDirection", "h")
|
||||||
WESoupHandle = OpaqueByValueType("WESoupHandle", "ResObj")
|
WESoupHandle = OpaqueByValueType("WESoupHandle", "ResObj")
|
||||||
WEFontTableHandle = OpaqueByValueType("WEFontTableHandle", "ResObj")
|
WEFontTableHandle = OpaqueByValueType("WEFontTableHandle", "ResObj")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue