summaryrefslogtreecommitdiff
path: root/type.cpp
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2018-09-12 17:03:38 -0400
committerPeter LaFosse <peter@vector35.com>2018-09-12 17:03:38 -0400
commit74a8547853dd66fe62d2e75b93c1b723eb6f69cf (patch)
tree067119496c2beaf0636c955d27291d4620e17c0b /type.cpp
parent097a2e4c8849d4938d8a027985ce3816fd9785ed (diff)
parent59a2824b1ad36ea5d0520919e86ad779cd97cc8f (diff)
Merging with dev
Diffstat (limited to 'type.cpp')
-rw-r--r--type.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/type.cpp b/type.cpp
index 81d2ec26..37b8f131 100644
--- a/type.cpp
+++ b/type.cpp
@@ -604,10 +604,10 @@ uint64_t Type::GetOffset() const
}
-Confidence<size_t> Type::GetStackAdjustment() const
+Confidence<int64_t> Type::GetStackAdjustment() const
{
- BNSizeWithConfidence result = BNGetTypeStackAdjustment(m_object);
- return Confidence<size_t>(result.value, result.confidence);
+ BNOffsetWithConfidence result = BNGetTypeStackAdjustment(m_object);
+ return Confidence<int64_t>(result.value, result.confidence);
}
@@ -823,7 +823,7 @@ Ref<Type> Type::ArrayType(const Confidence<Ref<Type>>& type, uint64_t elem)
Ref<Type> Type::FunctionType(const Confidence<Ref<Type>>& returnValue,
const Confidence<Ref<CallingConvention>>& callingConvention,
const std::vector<FunctionParameter>& params, const Confidence<bool>& varArg,
- const Confidence<size_t>& stackAdjust)
+ const Confidence<int64_t>& stackAdjust)
{
BNTypeWithConfidence returnValueConf;
returnValueConf.type = returnValue->GetObject();
@@ -849,7 +849,7 @@ Ref<Type> Type::FunctionType(const Confidence<Ref<Type>>& returnValue,
varArgConf.value = varArg.GetValue();
varArgConf.confidence = varArg.GetConfidence();
- BNSizeWithConfidence stackAdjustConf;
+ BNOffsetWithConfidence stackAdjustConf;
stackAdjustConf.value = stackAdjust.GetValue();
stackAdjustConf.confidence = stackAdjust.GetConfidence();