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:
Julian Seward 2002-05-09 01:32:57 +00:00
parent 44f0d41089
commit d8d97d9e36
2 changed files with 4 additions and 4 deletions

View File

@ -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.

View File

@ -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.