]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
dbus-marshal-basic: Fix an incorrect comment
authorSimon McVittie <smcv@collabora.com>
Tue, 13 Sep 2022 15:02:39 +0000 (16:02 +0100)
committerSimon McVittie <smcv@collabora.com>
Fri, 7 Oct 2022 13:15:56 +0000 (14:15 +0100)
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>
dbus/dbus-marshal-basic.c

index 6ebe5bd36d4a72a31221f0649b8f016029cfa01a..938e29230d2c963ea6a061b3d322e6d8f94ba2b4 100644 (file)
@@ -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)