Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Aug 2011 15:47:54 +0000 (UTC)
From:      Gabor Kovesdan <gabor@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r224735 - user/gabor/tre-integration/contrib/tre/lib
Message-ID:  <201108091547.p79FlsB7002022@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gabor
Date: Tue Aug  9 15:47:54 2011
New Revision: 224735
URL: http://svn.freebsd.org/changeset/base/224735

Log:
  - Simplify cast
  
  Submitted by:	ache

Modified:
  user/gabor/tre-integration/contrib/tre/lib/fastmatch.c

Modified: user/gabor/tre-integration/contrib/tre/lib/fastmatch.c
==============================================================================
--- user/gabor/tre-integration/contrib/tre/lib/fastmatch.c	Tue Aug  9 15:46:52 2011	(r224734)
+++ user/gabor/tre-integration/contrib/tre/lib/fastmatch.c	Tue Aug  9 15:47:54 2011	(r224735)
@@ -129,7 +129,7 @@ static void	revs(char *str, int len);
 		  v = fg->len - 1 - mismatch;				\
 		  gs = fg->sbmGs[mismatch];				\
 		}							\
-	      bc = fg->qsBc[(unsigned char)((char *)startptr)		\
+	      bc = fg->qsBc[((unsigned char *)startptr)			\
 		[mismatch + 1]];					\
               break;							\
             case STR_WIDE:						\
@@ -172,7 +172,7 @@ static void	revs(char *str, int len);
       CHECKBOUNDS;							\
       {									\
 	int bc, gs;							\
-	bc = fg->qsBc[(unsigned char)((char *)startptr)[mismatch + 1]];	\
+	bc = fg->qsBc[((unsigned char *)startptr)[mismatch + 1]];	\
 	if (fg->hasdot)							\
 	  shift = bc;							\
 	else								\



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201108091547.p79FlsB7002022>