Changeset 913 for trunk


Ignore:
Timestamp:
Jul 14, 2017, 12:42:30 PM (2 years ago)
Author:
cito
Message:

Explicit casting of long to int to avoid warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pgmodule.c

    r912 r913  
    41474147                num = PQfnumber(self->result, PyBytes_AsString(param));
    41484148        else if (PyInt_Check(param))
    4149                 num = PyInt_AsLong(param);
     4149                num = (int)PyInt_AsLong(param);
    41504150        else
    41514151        {
     
    44524452
    44534453        if ((pgport == -1) && (pg_default_port != Py_None))
    4454                 pgport = PyInt_AsLong(pg_default_port);
     4454                pgport = (int)PyInt_AsLong(pg_default_port);
    44554455
    44564456        if ((!pgopt) && (pg_default_opt != Py_None))
Note: See TracChangeset for help on using the changeset viewer.