summaryrefslogtreecommitdiff
path: root/src/mmo/ids.py
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2014-08-28 14:28:43 -0700
committerBen Longbons <b.r.longbons@gmail.com>2014-08-28 14:28:43 -0700
commit7245589dcbc08c377f783a637deeaa09604c6213 (patch)
treeb553c5a3970a3268b1bc6ede089e50ba948ac119 /src/mmo/ids.py
parent9e01aa7912f782fc9049f8098a4618bba3a82fa0 (diff)
downloadtmwa-7245589dcbc08c377f783a637deeaa09604c6213.tar.gz
tmwa-7245589dcbc08c377f783a637deeaa09604c6213.tar.bz2
tmwa-7245589dcbc08c377f783a637deeaa09604c6213.tar.xz
tmwa-7245589dcbc08c377f783a637deeaa09604c6213.zip
Compatibility with gdb 7.4
Diffstat (limited to 'src/mmo/ids.py')
-rw-r--r--src/mmo/ids.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mmo/ids.py b/src/mmo/ids.py
index 2d26215..89392b1 100644
--- a/src/mmo/ids.py
+++ b/src/mmo/ids.py
@@ -18,7 +18,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
tests = [
('tmwa::wrap<tmwa::%s>(123)' % s, '123'),