might as well micro-optimize

This commit is contained in:
Caolan McNamara 2008-01-03 16:07:16 +00:00
parent 4f20bed1a0
commit c18aea0bdf
2 changed files with 11 additions and 3 deletions

View File

@ -1,6 +1,6 @@
diff -ru hunspell-1.2.1.orig/src/hunspell/csutil.cxx hunspell-1.2.1/src/hunspell/csutil.cxx
--- hunspell-1.2.1.orig/src/hunspell/csutil.cxx 2007-11-01 15:40:53.000000000 +0000
+++ hunspell-1.2.1/src/hunspell/csutil.cxx 2008-01-03 15:41:54.000000000 +0000
+++ hunspell-1.2.1/src/hunspell/csutil.cxx 2008-01-03 16:02:31.000000000 +0000
@@ -941,7 +941,7 @@
{ 0x00, 0xfc, 0xdc },
{ 0x00, 0xfd, 0xdd },
@ -163,3 +163,11 @@ diff -ru hunspell-1.2.1.orig/src/hunspell/csutil.cxx hunspell-1.2.1/src/hunspell
};
struct cs_info * get_current_cs(const char * es) {
@@ -5117,6 +5117,7 @@
for (int i = 0; i < n; i++) {
if (strcmp(es,encds[i].enc_name) == 0) {
ccs = encds[i].cs_table;
+ break;
}
}
return ccs;

View File

@ -1,7 +1,7 @@
Name: hunspell
Summary: Hunspell is a spell checker and morphological analyzer library
Version: 1.2.1
Release: 3%{?dist}
Release: 4%{?dist}
Source: http://downloads.sourceforge.net/%{name}/hunspell-%{version}.tar.gz
Group: System Environment/Libraries
URL: http://hunspell.sourceforge.net/
@ -82,7 +82,7 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/pkgconfig/hunspell.pc
%changelog
* Thu Jan 03 2008 Caolan McNamara <caolanm@redhat.com> - 1.2.1-3
* Thu Jan 03 2008 Caolan McNamara <caolanm@redhat.com> - 1.2.1-4
- add hunspell-1.2.1-1863239.badstructs.patch
* Fri Nov 09 2007 Caolan McNamara <caolanm@redhat.com> - 1.2.1-2