[nemiver] Fix address overflowing during disassembling
- From: Dodji Seketeli <dodji src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nemiver] Fix address overflowing during disassembling
- Date: Sat, 17 Jul 2010 21:34:23 +0000 (UTC)
commit fe55e3b8ee326879e961b0ec5d4fcb1b8b296a60
Author: Dodji Seketeli <dodji redhat com>
Date: Sat Jul 17 16:50:23 2010 +0200
Fix address overflowing during disassembling
* src/common/nmv-range.h (Range::min, Range::max): Use size_t
instead of int for the parm type. This prevents overflowing the
addresses when trying to disassemble.
src/common/nmv-range.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/common/nmv-range.h b/src/common/nmv-range.h
index 1bd40e1..2993520 100644
--- a/src/common/nmv-range.h
+++ b/src/common/nmv-range.h
@@ -43,9 +43,9 @@ public:
}
size_t min () const {return m_min;}
- void min (int a) {m_min = a;}
+ void min (size_t a) {m_min = a;}
size_t max () const {return m_max;}
- void max (int a) {m_max = a;}
+ void max (size_t a) {m_max = a;}
bool contains (size_t a_value) const
{
return (a_value >= m_min && a_value <= m_max);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]