diff options
author | Simon McVittie <smcv@collabora.com> | 2022-09-13 16:02:39 +0100 |
---|---|---|
committer | Simon McVittie <smcv@collabora.com> | 2022-10-07 14:15:56 +0100 |
commit | e955ae2109223382fc8681941162ab6c7a087f28 (patch) | |
tree | 0ad0f0a73bd72a5d21893d22cb95ea2898cfff11 /dbus | |
parent | ba1cf69f38be890320a37b5929392a5795c97c07 (diff) | |
download | dbus-e955ae2109223382fc8681941162ab6c7a087f28.tar.gz |
dbus-marshal-basic: Fix an incorrect comment
We have 16-bit types with 2-byte alignment, but this comment claimed
we only have 1-, 4- or 8-byte alignment. The actual implementation is
fine, and correctly reports 2-byte alignment for the 16-bit types.
Signed-off-by: Simon McVittie <smcv@collabora.com>
Diffstat (limited to 'dbus')
-rw-r--r-- | dbus/dbus-marshal-basic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dbus/dbus-marshal-basic.c b/dbus/dbus-marshal-basic.c index 6ebe5bd3..938e2923 100644 --- a/dbus/dbus-marshal-basic.c +++ b/dbus/dbus-marshal-basic.c @@ -1242,10 +1242,10 @@ _dbus_marshal_skip_array (const DBusString *str, /** * Gets the alignment requirement for the given type; - * will be 1, 4, or 8. + * will be 1, 2, 4, or 8. * * @param typecode the type - * @returns alignment of 1, 4, or 8 + * @returns alignment of 1, 2, 4, or 8 */ int _dbus_type_get_alignment (int typecode) |