summaryrefslogtreecommitdiff
path: root/shared/via_verifier.c
diff options
context:
space:
mode:
authorThomas Hellstrom <unichrome@shipmail.org>2005-08-14 09:52:09 +0000
committerThomas Hellstrom <unichrome@shipmail.org>2005-08-14 09:52:09 +0000
commit4f5961eeeee806a2d6e08e159c56262d4f060cba (patch)
treee5e70f2900f9cb441ad16eca442bc616018595e8 /shared/via_verifier.c
parent4050f5066a706bda74ed93ab858bbc9fc0b1477b (diff)
VIA bugvixes by Joris van Rantwijk Initial commit.
Diffstat (limited to 'shared/via_verifier.c')
-rw-r--r--shared/via_verifier.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shared/via_verifier.c b/shared/via_verifier.c
index ed14b1c6..13b5ccf0 100644
--- a/shared/via_verifier.c
+++ b/shared/via_verifier.c
@@ -248,7 +248,7 @@ static hazard_t table3[256];
static __inline__ int
eat_words(const uint32_t **buf, const uint32_t *buf_end, unsigned num_words)
{
- if ((*buf - buf_end) >= num_words) {
+ if ((buf_end - *buf) >= num_words) {
*buf += num_words;
return 0;
}