From b0bb93ab81e8d087b22ded0e9547b0527e12386b Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Tue, 26 Mar 2019 07:11:45 +0100 Subject: [PATCH] sample: make length and capacity fields unsigned --- include/villas/sample.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/villas/sample.h b/include/villas/sample.h index d50fa11a9..163d28f2f 100644 --- a/include/villas/sample.h +++ b/include/villas/sample.h @@ -65,8 +65,8 @@ enum sample_flags { struct sample { uint64_t sequence; /**< The sequence number of this sample. */ - int length; /**< The number of values in sample::values which are valid. */ - int capacity; /**< The number of values in sample::values for which memory is reserved. */ + unsigned length; /**< The number of values in sample::values which are valid. */ + unsigned capacity; /**< The number of values in sample::values for which memory is reserved. */ int flags; /**< Flags are used to store binary properties of a sample. */ struct vlist *signals; /**< The list of signal descriptors. */