protobuf: no previous prototype for ‘sint64_decode/sint32_decode’ [-Wmissing-prototypes]

Change-Id: I85be2eb645ab00d711f525d711ebf90f200595cc
Reviewed-on: https://code.wireshark.org/review/23943
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
This commit is contained in:
Alexis La Goutte 2017-10-16 20:56:11 +02:00 committed by Michael Mann
parent dbbaa41362
commit 0a3cf5d5cf
1 changed files with 2 additions and 2 deletions

View File

@ -185,13 +185,13 @@ protobuf_find_field_info(const gchar* call_path_direction_type, int field_number
* value (for instance, -1) have a small varint encoded value too. (refers to protobuf spec)
* sint32 encoded using (n << 1) ^ (n >> 31)
*/
gint32
static gint32
sint32_decode(guint32 sint32) {
return (sint32 >> 1) ^ ((gint32)sint32 << 31 >> 31);
}
/* sint64 encoded using (n << 1) ^ (n >> 63) */
gint64
static gint64
sint64_decode(guint64 sint64) {
return (sint64 >> 1) ^ ((gint64)sint64 << 63 >> 63);
}