summaryrefslogtreecommitdiff
path: root/net/irrtoolset-nox11/patches/patch-aq
blob: 2082f2595aede56976aec68300b404048f87de8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-aq,v 1.1.1.1 2005/02/28 12:37:29 spz Exp $

--- src/rpsl/gnu/PrefixRange.Plex.h.orig	2002-03-27 12:33:00.000000000 +0100
+++ src/rpsl/gnu/PrefixRange.Plex.h
@@ -288,7 +288,7 @@ inline  PrefixRange* PrefixRangeIChunk::
 
 inline  int  PrefixRangeIChunk:: index_of(const PrefixRange* p) const
 {
-  return ((int)p - (int)data) / sizeof(PrefixRange) + base;
+  return (p - data) + base;
 }
 
 inline  int  PrefixRangeIChunk:: possible_index(int i) const