From 5fa20111765780c54e72becce929b973dc78ed2e Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Thu, 13 Jan 2022 23:23:38 +0100 Subject: [PATCH] bin: Fix string reference bug. --- coe/bin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/coe/bin.py b/coe/bin.py index de3d6fa..0e92bc6 100644 --- a/coe/bin.py +++ b/coe/bin.py @@ -259,10 +259,10 @@ class decoder(object): return self.reftab[idx] return self.addref(self.loadint(fp)) elif pri == T_STR: - ret = self.addref(self.loadstr(fp)) + ret = self.loadstr(fp) if sec == STR_SYM: - return data.symbol.get("", ret) - return ret + return self.addref(data.symbol.get("", ret)) + return self.addref(ret) elif pri == T_BIT: ln = self.loadint(fp) ret = self.addref(fp.read(ln)) -- 2.11.0