[nemiver/asm-support] Fix address overflowing during disassembling



commit 54ec549c23e0be4be5c210b8542da2415c73f298
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]