util.ringbuffer: Remove address of buffer itself from __tostring since is now in the same struct
authorKim Alvefur <zash@zash.se>
Sun, 12 Feb 2017 15:51:32 +0100
changeset 7891 74187ee6ed55
parent 7889 679746cdf3cc
child 7892 b8d694646597
util.ringbuffer: Remove address of buffer itself from __tostring since is now in the same struct
util-src/ringbuffer.c
--- 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;
 }