Changeset 931 for trunk/pgmodule.c


Ignore:
Timestamp:
Apr 22, 2018, 9:43:01 AM (17 months ago)
Author:
cito
Message:

Account for a small change in Python 3.7

The return type of PyStr_AsString = PyUnicode_AsUTF8
is now const char * rather of char *.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pgmodule.c

    r930 r931  
    22832283                                }
    22842284                                *s++ = str_obj;
    2285                                 *p = PyStr_AsString(str_obj);
     2285                                *p = (char *)PyStr_AsString(str_obj);
    22862286                        }
    22872287                }
Note: See TracChangeset for help on using the changeset viewer.