Skip to content

Commit 3edac3c

Browse files
Cecs87cire831
authored andcommitted
Fixed the generation of the getString_* method. (#39)
The chr() was called in the wrong line.
1 parent d8d4af4 commit 3edac3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/genpython.pm

+2-2
Original file line numberDiff line numberDiff line change
@@ -380,9 +380,9 @@ sub gen() {
380380
print " def getString_$pythonfield(self):\n";
381381
print " carr = \"\";\n";
382382
print " for i in range(0, 4000):\n";
383-
print " if self.getElement_$pythonfield(i) == chr(0):\n";
383+
print " if self.getElement_$pythonfield(i) == 0:\n";
384384
print " break\n";
385-
print " carr += self.getElement_$pythonfield(i)\n";
385+
print " carr += chr(self.getElement_$pythonfield(i))\n";
386386
print " return carr\n";
387387
print " \n";
388388
}

0 commit comments

Comments
 (0)