nim-bt/nim-dbus-dtbool.patch
2026-05-30 11:01:25 +03:00

11 lines
333 B
Diff

--- a/dbus/private/value.nim
+++ b/dbus/private/value.nim
@@ -93,6 +93,8 @@ type DbusNativePrimitive = bool | float64 | int32 | int16 | uint16 | uint64 | ui
proc getPrimitive(val: DbusValue): pointer =
case val.kind
+ of dtBool:
+ return addr val.uint32Value
of dtDouble:
return addr val.doubleValue
of dtInt32: