Diff

util-src/ringbuffer.c @ 7888:74187ee6ed55

util.ringbuffer: Remove address of buffer itself from __tostring since is now in the same struct
author Kim Alvefur <zash@zash.se>
date Sun, 12 Feb 2017 15:51:32 +0100
parent 7835:a809dcfd0c5b
child 7889:b8d694646597
line wrap: on
line diff
--- a/util-src/ringbuffer.c	Fri Feb 10 21:25:12 2017 +0100
+++ b/util-src/ringbuffer.c	Sun Feb 12 15:51:32 2017 +0100
@@ -139,7 +139,7 @@
 
 int rb_tostring(lua_State* L) {
 	ringbuffer* b = luaL_checkudata(L, 1, "ringbuffer_mt");
-	lua_pushfstring(L, "ringbuffer: %p->%p %d/%d", b, b->buffer, b->blen, b->alen);
+	lua_pushfstring(L, "ringbuffer: %p %d/%d", b, b->blen, b->alen);
 	return 1;
 }