From a78c14780294e326d79f3968f82de1e7bab412c2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Sat, 20 Jul 2013 14:05:10 +0100 Subject: [PATCH] wgltrace: Prevent duplicate variable declaration. --- wrappers/trace.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wrappers/trace.py b/wrappers/trace.py index adfc764..10f71a4 100644 --- a/wrappers/trace.py +++ b/wrappers/trace.py @@ -213,6 +213,7 @@ class ValueSerializer(stdapi.Visitor, stdapi.ExpanderMixin): # determine the array length which must be passed to writeArray() up front count = '_c' + array.keyType.tag + print ' {' print ' int %s;' % count print ' for (%(c)s = 0; %(array)s && %(array)s[%(c)s] != %(terminator)s; %(c)s += 2) {' \ % {'c': count, 'array': instance, 'terminator': array.terminator} @@ -265,6 +266,7 @@ class ValueSerializer(stdapi.Visitor, stdapi.ExpanderMixin): print ' }' print ' }' print ' trace::localWriter.endArray();' + print ' }' def visitBlob(self, blob, instance): -- 2.43.0