pull/1200/head
syheliel 3 years ago committed by Disconnect3d
parent 5324ba1d2a
commit 26ec474eae

@ -243,7 +243,7 @@ class Parameter(gdb.Parameter):
return self.value // other
def __pow__(self, other):
return self.value ** other
return self.value**other
def __mod__(self, other):
return self.value % other

@ -57,15 +57,18 @@ def happy(typename):
if "unsigned" in typename:
prefix = "u"
typename = typename.replace("unsigned ", "")
return prefix + {
"char": "char",
"short int": "short",
"long int": "long",
"int": "int",
"long long": "longlong",
"float": "float",
"double": "double",
}[typename]
return (
prefix
+ {
"char": "char",
"short int": "short",
"long int": "long",
"int": "int",
"long long": "longlong",
"float": "float",
"double": "double",
}[typename]
)
def dt(name="", addr=None, obj=None):

Loading…
Cancel
Save