MINOR: buffer: switch buffer sizes and offsets to size_t
Passing unsigned ints everywhere is painful, and will cause some headache
later when we'll want to integrate better with struct ist which already
uses size_t. Let's switch buffers to use size_t instead.
diff --git a/src/buffer.c b/src/buffer.c
index 79cc133..b6ece4b 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -211,9 +211,9 @@
void buffer_dump(FILE *o, struct buffer *b, int from, int to)
{
fprintf(o, "Dumping buffer %p\n", b);
- fprintf(o, " data=%p o=%d i=%d p=%p\n"
+ fprintf(o, " data=%p o=%u i=%u p=%p\n"
" relative: p=0x%04x\n",
- b->data, b->o, b->i, b->p, (unsigned int)(b->p - b->data));
+ b->data, (unsigned int)b->o, (unsigned int)b->i, b->p, (unsigned int)(b->p - b->data));
fprintf(o, "Dumping contents from byte %d to byte %d\n", from, to);
fprintf(o, " 0 1 2 3 4 5 6 7 8 9 a b c d e f\n");