From 7c3e745787499cecc47505c138e594a00c48f9a0 Mon Sep 17 00:00:00 2001 From: Martin Mares <mj@ucw.cz> Date: Tue, 14 Nov 2017 15:33:49 +0100 Subject: [PATCH] =?UTF-8?q?Access:=20Z=C3=A1pisy=20jsou=20opravdov=C3=A9?= =?UTF-8?q?=20z=C3=A1pisy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- access/access.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/access/access.c b/access/access.c index 1115241..c7f0eee 100644 --- a/access/access.c +++ b/access/access.c @@ -87,7 +87,8 @@ static inline void eat(uint32_t x) static inline void process_item(struct item *x) { #ifdef MODIFY - x->pad[0]++; + static uint32_t cnt; + x->pad[0] = cnt++; #else eat(x->pad[0]); #endif -- GitLab