if (backtick && !bin_len)
*ascii_data++ = '`';
else
- *ascii_data++ = ' ' + bin_len;
+ *ascii_data++ = ' ' + (unsigned char)bin_len;
for( ; bin_len > 0 || leftbits != 0 ; bin_len--, bin_data++ ) {
/* Shift the data (or padding) into our buffer */
static void
arrange_input_buffer(z_stream *zst, Py_ssize_t *remains)
{
- zst->avail_in = Py_MIN((size_t)*remains, UINT_MAX);
+ zst->avail_in = (uInt)Py_MIN((size_t)*remains, UINT_MAX);
*remains -= zst->avail_in;
}
}
}
- zst->avail_out = Py_MIN((size_t)(length - occupied), UINT_MAX);
+ zst->avail_out = (uInt)Py_MIN((size_t)(length - occupied), UINT_MAX);
zst->next_out = (Byte *)PyBytes_AS_STRING(*buffer) + occupied;
return length;
HKEY retKey;
long rc;
- rc = RegCreateKeyExW(key, sub_key, reserved, NULL, (DWORD)NULL,
+ rc = RegCreateKeyExW(key, sub_key, reserved, NULL, 0,
access, NULL, &retKey, NULL);
if (rc != ERROR_SUCCESS) {
PyErr_SetFromWindowsErrWithFunction(rc, "CreateKeyEx");