diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2014-08-28 14:28:43 -0700 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2014-08-28 14:28:43 -0700 |
commit | 7245589dcbc08c377f783a637deeaa09604c6213 (patch) | |
tree | b553c5a3970a3268b1bc6ede089e50ba948ac119 /src/mmo/strs.py | |
parent | 9e01aa7912f782fc9049f8098a4618bba3a82fa0 (diff) | |
download | tmwa-7245589dcbc08c377f783a637deeaa09604c6213.tar.gz tmwa-7245589dcbc08c377f783a637deeaa09604c6213.tar.bz2 tmwa-7245589dcbc08c377f783a637deeaa09604c6213.tar.xz tmwa-7245589dcbc08c377f783a637deeaa09604c6213.zip |
Compatibility with gdb 7.4
Diffstat (limited to 'src/mmo/strs.py')
-rw-r--r-- | src/mmo/strs.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mmo/strs.py b/src/mmo/strs.py index 3e39ef4..313ecb5 100644 --- a/src/mmo/strs.py +++ b/src/mmo/strs.py @@ -21,7 +21,11 @@ for s in [ value = self._value fields = value.type.fields() field0 = fields[-1] - return '%s' % value[field0] + if field0.is_base_class: + w = value.cast(field0.type) + else: + w = value[field0.name] + return '%s' % w test_extra = ''' #include "../strings/fwd.hpp" |