Skip to content

Commit 38b83f0

Browse files
committed
bugfix: pystring::translate works when using both table + deletechars
Fixed bug in translate, documented in github issue #3, and previously at http://code.google.com/p/pystring/issues/detail?id=4
1 parent b09b4ae commit 38b83f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pystring.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@ namespace pystring
766766
{
767767
if ( trans_table[ (int) str[i] ] != -1 )
768768
{
769-
s += table[ s[i] ];
769+
s += table[ str[i] ];
770770
}
771771
}
772772

0 commit comments

Comments
 (0)