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

[hts-users:01734] Tiny bug in HUtil.c


Hi all,

I found a tiny bug in HUtil.c, it has no effect but should be fixed.
The patch code is as follows:

diff -u HUtil.c
--- HUtil.c     23 Jun 2008 09:15:55 -0000      1.20
+++ HUtil.c     7 Oct 2008 12:30:42 -0000
@@ -690,13 +690,13 @@
 }

 /* DupSet: duplicate given set to newset*/
-void DupSet(IntSet oldSet, IntSet newSet)
+void DupSet(IntSet oldSet, IntSet *newSet)
 {
    int i;

-   newSet = CreateSet(oldSet.nMembers);
-   for (i=1;i<=oldSet.nMembers;i++)
-      newSet.set[i] = oldSet.set[i];
+   *newSet = CreateSet(oldSet.nMembers);
+   for (i=1;i<=oldSet.nMembers;i++)
+      newSet->set[i] = oldSet.set[i];
 }

 /* CopySet: copy given set to newset*/

diff -u HUtil.h
--- HUtil.h     6 Jun 2008 05:52:52 -0000       1.7
+++ HUtil.h     7 Oct 2008 12:30:42 -0000
@@ -254,7 +254,7 @@
 Boolean IsFullSet(IntSet s);
 void ClearSet(IntSet s);
 void SetSet(IntSet s);
-void DupSet(IntSet oldSet, IntSet newSet);
+void DupSet(IntSet oldSet, IntSet *newSet);
 void CopySet(IntSet oldSet, IntSet newSet);

 /*


Best regards,

Heiga ZEN (Byung Ha CHUN)

--
--------------------------
Heiga ZEN (Byung Ha CHUN)
Speech Technology Group
Cambridge Research Lab
Toshiba Research Europe
phone: +44 1223 436975

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email ______________________________________________________________________