gh-94512: Fix forced arg format in AC-processed winreg (GH-94513)

This commit is contained in:
Oleg Iarygin 2022-07-04 16:10:10 +03:00 committed by GitHub
parent 21f6b4d783
commit 9b50f76fcd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 201 additions and 22 deletions

View file

@ -217,13 +217,11 @@ class winreg.HKEYType "PyHKEYObject *" "&PyHKEY_Type"
/*[clinic end generated code: output=da39a3ee5e6b4b0d input=4c964eba3bf914d6]*/
/*[python input]
class REGSAM_converter(CConverter):
class REGSAM_converter(int_converter):
type = 'REGSAM'
format_unit = 'i'
class DWORD_converter(CConverter):
class DWORD_converter(unsigned_long_converter):
type = 'DWORD'
format_unit = 'k'
class HKEY_converter(CConverter):
type = 'HKEY'
@ -249,7 +247,7 @@ class self_return_converter(CReturnConverter):
data.return_conversion.append(
'return_value = (PyObject *)_return_value;\n')
[python start generated code]*/
/*[python end generated code: output=da39a3ee5e6b4b0d input=22f7aedc6d68e80e]*/
/*[python end generated code: output=da39a3ee5e6b4b0d input=2ebb7a4922d408d6]*/
#include "clinic/winreg.c.h"