Skip to content

Commit 9b50f76

Browse files
authored
pythongh-94512: Fix forced arg format in AC-processed winreg (pythonGH-94513)
1 parent 21f6b4d commit 9b50f76

File tree

2 files changed

+201
-22
lines changed

2 files changed

+201
-22
lines changed

PC/clinic/winreg.c.h

+198-17
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

PC/winreg.c

+3-5
Original file line numberDiff line numberDiff line change
@@ -217,13 +217,11 @@ class winreg.HKEYType "PyHKEYObject *" "&PyHKEY_Type"
217217
/*[clinic end generated code: output=da39a3ee5e6b4b0d input=4c964eba3bf914d6]*/
218218

219219
/*[python input]
220-
class REGSAM_converter(CConverter):
220+
class REGSAM_converter(int_converter):
221221
type = 'REGSAM'
222-
format_unit = 'i'
223222
224-
class DWORD_converter(CConverter):
223+
class DWORD_converter(unsigned_long_converter):
225224
type = 'DWORD'
226-
format_unit = 'k'
227225
228226
class HKEY_converter(CConverter):
229227
type = 'HKEY'
@@ -249,7 +247,7 @@ class self_return_converter(CReturnConverter):
249247
data.return_conversion.append(
250248
'return_value = (PyObject *)_return_value;\n')
251249
[python start generated code]*/
252-
/*[python end generated code: output=da39a3ee5e6b4b0d input=22f7aedc6d68e80e]*/
250+
/*[python end generated code: output=da39a3ee5e6b4b0d input=2ebb7a4922d408d6]*/
253251

254252
#include "clinic/winreg.c.h"
255253

0 commit comments

Comments
 (0)