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

--- src/gnug++/unsigned.Plex.h.orig	2002-03-27 12:32:57.000000000 +0100
+++ src/gnug++/unsigned.Plex.h
@@ -288,7 +288,7 @@ inline  unsigned* unsignedIChunk:: point
 
 inline  int  unsignedIChunk:: index_of(const unsigned* p) const
 {
-  return ((int)p - (int)data) / sizeof(unsigned) + base;
+  return (p - data) + base;
 }
 
 inline  int  unsignedIChunk:: possible_index(int i) const