diff --git a/pandas/src/numpy_helper.h b/pandas/src/numpy_helper.h index 17d5ec12f4f79..809edb2e99fa2 100644 --- a/pandas/src/numpy_helper.h +++ b/pandas/src/numpy_helper.h @@ -125,7 +125,7 @@ PyObject* sarr_from_data(PyArray_Descr* descr, int length, void* data) { void transfer_object_column(char* dst, char* src, size_t stride, size_t length) { - int i; + size_t i; size_t sz = sizeof(PyObject*); for (i = 0; i < length; ++i) { diff --git a/pandas/tslib.pyx b/pandas/tslib.pyx index 15b279d20021a..7c65ab5422309 100644 --- a/pandas/tslib.pyx +++ b/pandas/tslib.pyx @@ -1945,7 +1945,7 @@ cdef inline object _parse_dateabbr_string(object date_string, object default, object freq): cdef: object ret - int year, quarter, month, mnum, date_len + int year, quarter = -1, month, mnum, date_len # special handling for possibilities eg, 2Q2005, 2Q05, 2005Q1, 05Q1 assert util.is_string_object(date_string)