summaryrefslogtreecommitdiffstats
path: root/PC
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-03-23 10:37:41 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2016-03-23 10:37:41 (GMT)
commite985726553b4e5571f110f00e14da5a6ae5d7994 (patch)
tree741a1598572dc3f32c13486f34be209c1359af80 /PC
parent976bb4099c41af2eda00213eeac3083829f12c98 (diff)
downloadcpython-e985726553b4e5571f110f00e14da5a6ae5d7994.zip
cpython-e985726553b4e5571f110f00e14da5a6ae5d7994.tar.gz
cpython-e985726553b4e5571f110f00e14da5a6ae5d7994.tar.bz2
_msi.c: try to fix compiler warnings
Diffstat (limited to 'PC')
-rw-r--r--PC/_msi.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/PC/_msi.c b/PC/_msi.c
index 86a5943..b66b18b 100644
--- a/PC/_msi.c
+++ b/PC/_msi.c
@@ -1032,12 +1032,12 @@ PyInit__msi(void)
if (m == NULL)
return NULL;
- PyModule_AddIntConstant(m, "MSIDBOPEN_CREATEDIRECT", (int)MSIDBOPEN_CREATEDIRECT);
- PyModule_AddIntConstant(m, "MSIDBOPEN_CREATE", (int)MSIDBOPEN_CREATE);
- PyModule_AddIntConstant(m, "MSIDBOPEN_DIRECT", (int)MSIDBOPEN_DIRECT);
- PyModule_AddIntConstant(m, "MSIDBOPEN_READONLY", (int)MSIDBOPEN_READONLY);
- PyModule_AddIntConstant(m, "MSIDBOPEN_TRANSACT", (int)MSIDBOPEN_TRANSACT);
- PyModule_AddIntConstant(m, "MSIDBOPEN_PATCHFILE", (int)MSIDBOPEN_PATCHFILE);
+ PyModule_AddIntConstant(m, "MSIDBOPEN_CREATEDIRECT", (long)MSIDBOPEN_CREATEDIRECT);
+ PyModule_AddIntConstant(m, "MSIDBOPEN_CREATE", (long)MSIDBOPEN_CREATE);
+ PyModule_AddIntConstant(m, "MSIDBOPEN_DIRECT", (long)MSIDBOPEN_DIRECT);
+ PyModule_AddIntConstant(m, "MSIDBOPEN_READONLY", (long)MSIDBOPEN_READONLY);
+ PyModule_AddIntConstant(m, "MSIDBOPEN_TRANSACT", (long)MSIDBOPEN_TRANSACT);
+ PyModule_AddIntConstant(m, "MSIDBOPEN_PATCHFILE", (long)MSIDBOPEN_PATCHFILE);
PyModule_AddIntMacro(m, MSICOLINFO_NAMES);
PyModule_AddIntMacro(m, MSICOLINFO_TYPES);