More 32bit fixes

This commit is contained in:
Kovid Goyal
2017-11-30 00:02:44 +05:30
parent 1365eafce5
commit 9ed980a511
3 changed files with 4 additions and 3 deletions

View File

@@ -161,7 +161,7 @@ url_end_at(Line *self, PyObject *x) {
static PyObject*
text_at(Line* self, Py_ssize_t xval) {
#define text_at_doc "[x] -> Return the text in the specified cell"
if (xval >= self->xnum) { PyErr_SetString(PyExc_IndexError, "Column number out of bounds"); return NULL; }
if ((unsigned)xval >= self->xnum) { PyErr_SetString(PyExc_IndexError, "Column number out of bounds"); return NULL; }
return line_text_at(self->cells[xval].ch, self->cells[xval].cc);
}