added DI unit

This commit is contained in:
2017-12-28 21:01:13 +01:00
parent 37f712f054
commit 8768dc31ab
12 changed files with 313 additions and 29 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ struct PayloadBuilder_ {
// --- utilities ---
/** Get already used bytes count */
#define pb_length(pb) ((pb)->current - (pb)->start)
#define pb_length(pb) ((uint32_t)((pb)->current - (pb)->start))
/** Reset the current pointer to start */
#define pb_rewind(pb) do { pb->current = pb->start; } while (0)