Skip to content

Fix compilation warnings #27371

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from Jul 15, 2019
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pandas/_libs/internals.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ def get_blkno_indexers(int64_t[:] blknos, bint group=True):

object blkno
list group_order
dict group_slices
dict group_dict
int64_t[:] res_view

n = blknos.shape[0]
Expand Down
6 changes: 3 additions & 3 deletions pandas/_libs/tslibs/c_timestamp.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ from cpython cimport (PyObject_RichCompareBool, PyObject_RichCompare,

import numpy as np
cimport numpy as cnp
from numpy cimport int64_t, int8_t
from numpy cimport int64_t, int8_t, ndarray
cnp.import_array()

from cpython.datetime cimport (datetime,
Expand Down Expand Up @@ -213,7 +213,7 @@ cdef class _Timestamp(datetime):

def __add__(self, other):
cdef:
int64_t other_int, nanos
int64_t other_int, nanos = 0

if is_timedelta64_object(other):
other_int = other.astype('timedelta64[ns]').view('i8')
Expand Down Expand Up @@ -320,7 +320,7 @@ cdef class _Timestamp(datetime):
cdef:
int64_t val
dict kwds
int8_t out[1]
ndarray[int8_t] out
int month_kw

freq = self.freq
Expand Down