]> granicus.if.org Git - python/commitdiff
Fix test_gdb following the small unicode struct change in c25262e97304 (issue #13130)
authorAntoine Pitrou <solipsis@pitrou.net>
Sat, 8 Oct 2011 17:33:24 +0000 (19:33 +0200)
committerAntoine Pitrou <solipsis@pitrou.net>
Sat, 8 Oct 2011 17:33:24 +0000 (19:33 +0200)
Tools/gdb/libpython.py

index 4b42c8bff836c1ba1d3b1df51bfe1757d7783e7f..43a0f20ec140903082fe52113273ff9381a3c6ae 100644 (file)
@@ -1152,7 +1152,7 @@ class PyUnicodeObjectPtr(PyObjectPtr):
                     field_str = field_str.cast(_type_unsigned_char_ptr)
                 elif repr_kind == 2:
                     field_str = field_str.cast(_type_unsigned_short_ptr)
-                elif repr_kind == 3:
+                elif repr_kind == 4:
                     field_str = field_str.cast(_type_unsigned_int_ptr)
         else:
             # Python 3.2 and earlier