]> dgit.raspbian.org Git - pandas.git/commitdiff
rownum is 64 bit
authorDebian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
Wed, 16 Sep 2026 19:30:23 +0000 (20:30 +0100)
committerRebecca N. Palmer <rebecca_palmer@zoho.com>
Wed, 16 Sep 2026 19:30:23 +0000 (20:30 +0100)
Author: Trupti
Bug-Debian: https://bugs.debian.org/1148010

Gbp-Pq: Name 1148010_skiprow_type.patch

pandas/_libs/src/parser/tokenizer.c

index c9f7a796a9b1ce810b3e52610bb9a9d195a78589..e741867735b5b62979bfab617d7cfd4515dd486f 100644 (file)
@@ -647,7 +647,7 @@ static int parser_buffer_bytes(parser_t *self, size_t nbytes,
 static int skip_this_line(parser_t *self, int64_t rownum) {
   if (self->skipfunc != NULL) {
     PyGILState_STATE state = PyGILState_Ensure();
-    PyObject *result = PyObject_CallFunction(self->skipfunc, "i", rownum);
+    PyObject *result = PyObject_CallFunction(self->skipfunc, "L", (long long) rownum);
 
     // Error occurred. It will be processed
     // and caught at the Cython level.