Changeset 402 for python


Ignore:
Timestamp:
Mar 22, 2014, 2:17:26 PM (11 years ago)
Author:
dmik
Message:

python: Fix warnings.

Location:
python/trunk/Modules
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/trunk/Modules/_localemodule.c

    r391 r402  
    438438    strcpy( encoding, "");
    439439    if (DosQueryCp (sizeof (cp), cp, &cplen) == NO_ERROR)
    440         PyOS_snprintf(encoding, sizeof(encoding), "CP%u", cp[0]);
     440        PyOS_snprintf(encoding, sizeof(encoding), "CP%lu", cp[0]);
    441441
    442442    return Py_BuildValue("ss", locale, encoding);
  • python/trunk/Modules/posixmodule.c

    r391 r402  
    5656
    5757#if defined(PYOS_OS2)
     58#define OS2EMX_PLAIN_CHAR
    5859#define  INCL_DOS
    5960#define  INCL_DOSERRORS
Note: See TracChangeset for help on using the changeset viewer.