bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] regex: fix typo in definition of MIN


From: Paul Eggert
Subject: [PATCH] regex: fix typo in definition of MIN
Date: Mon, 20 Feb 2012 13:07:22 -0800
User-agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2

* lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
---
 ChangeLog            |    6 ++++++
 lib/regex_internal.h |    2 +-
 2 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 1577313..444422e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2012-02-20  Paul Eggert  <address@hidden>
+
+       regex: fix typo in definition of MIN
+       * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
+       Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
+
 2012-02-19  Paul Eggert  <address@hidden>
            Bruno Haible  <address@hidden>
 
diff --git a/lib/regex_internal.h b/lib/regex_internal.h
index 85855e0..2b9f697 100644
--- a/lib/regex_internal.h
+++ b/lib/regex_internal.h
@@ -470,7 +470,7 @@ static unsigned int re_string_context_at (const re_string_t 
*input, Idx idx,
 # define MAX(a,b) ((a) < (b) ? (b) : (a))
 #endif
 #ifndef MIN
-# define MIN(a,b) ((a) < (b) ? (b) : (a))
+# define MIN(a,b) ((a) < (b) ? (a) : (b))
 #endif
 
 #define re_malloc(t,n) ((t *) malloc ((n) * sizeof (t)))
-- 
1.7.6.5




reply via email to

[Prev in Thread] Current Thread [Next in Thread]