Skip to content

Commit 33d60c7

Browse files
committed
Fixed casting to a proper type when setting background_color.
1 parent 491324c commit 33d60c7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

cefpython/settings.pyx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,8 @@ cdef void SetApplicationSettings(
168168
elif key == "ignore_certificate_errors":
169169
cefAppSettings.ignore_certificate_errors = bool(appSettings[key])
170170
elif key == "background_color":
171-
cefAppSettings.background_color = int(appSettings[key])
171+
cefAppSettings.background_color = \
172+
<cef_types.uint32>int(appSettings[key])
172173
else:
173174
raise Exception("Invalid appSettings key: %s" % key)
174175

0 commit comments

Comments
 (0)