Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use fixed width integer types for n, i, q, u #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mr-nice
Copy link

@mr-nice mr-nice commented Nov 24, 2017

The DBus specification [1] uses fixed width integer types.

Without using the correct values for at least the 16 bit width
types the following error occurs:

GLib-CRITICAL **: g_variant_get_int32: assertion 'g_variant_is_of_type (value, G_VARIANT_TYPE_INT32)' failed
GLib-CRITICAL **: g_variant_get_uint32: assertion 'g_variant_is_of_type (value, G_VARIANT_TYPE_UINT32)' failed

1: https://dbus.freedesktop.org/doc/dbus-specification.html

I attached a simple demo:

error-case.tar.gz

The DBus specification [1] uses fixed width integer types.

Without using the correct values for at least the 16 bit width
types the following error occurs:

GLib-CRITICAL **: g_variant_get_int32: assertion 'g_variant_is_of_type (value, G_VARIANT_TYPE_INT32)' failed
GLib-CRITICAL **: g_variant_get_uint32: assertion 'g_variant_is_of_type (value, G_VARIANT_TYPE_UINT32)' failed

1: https://dbus.freedesktop.org/doc/dbus-specification.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant