mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-06 03:23:58 +00:00
Fix off-by-one error in definition of MAX_LINENO and MAX_LOC_SIZE.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@239
This commit is contained in:
parent
44f0d41089
commit
d8d97d9e36
@ -83,10 +83,10 @@ typedef
|
||||
|
||||
#define LINENO_BITS 20
|
||||
#define LOC_SIZE_BITS (32 - LINENO_BITS)
|
||||
#define MAX_LINENO (1 << LINENO_BITS)
|
||||
#define MAX_LINENO ((1 << LINENO_BITS) - 1)
|
||||
|
||||
/* Unlikely to have any lines with instruction ranges > 4096 bytes */
|
||||
#define MAX_LOC_SIZE (1 << LOC_SIZE_BITS)
|
||||
#define MAX_LOC_SIZE ((1 << LOC_SIZE_BITS) - 1)
|
||||
|
||||
/* Number used to detect line number overflows; if one line is 60000-odd
|
||||
* smaller than the previous, is was probably an overflow.
|
||||
|
||||
@ -83,10 +83,10 @@ typedef
|
||||
|
||||
#define LINENO_BITS 20
|
||||
#define LOC_SIZE_BITS (32 - LINENO_BITS)
|
||||
#define MAX_LINENO (1 << LINENO_BITS)
|
||||
#define MAX_LINENO ((1 << LINENO_BITS) - 1)
|
||||
|
||||
/* Unlikely to have any lines with instruction ranges > 4096 bytes */
|
||||
#define MAX_LOC_SIZE (1 << LOC_SIZE_BITS)
|
||||
#define MAX_LOC_SIZE ((1 << LOC_SIZE_BITS) - 1)
|
||||
|
||||
/* Number used to detect line number overflows; if one line is 60000-odd
|
||||
* smaller than the previous, is was probably an overflow.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user