From: ntakahas Date: Tue, 30 Jun 2009 12:26:12 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b5c0823c8c6cada733f06c54e224b4f1342c1c00;p=m17n%2Fm17n-lib-cs.git *** empty log message *** --- diff --git a/frontsensitive.cs b/frontsensitive.cs index 587d903..86193c8 100644 --- a/frontsensitive.cs +++ b/frontsensitive.cs @@ -134,11 +134,14 @@ public class Test DebugDump (3); // sensitivity for insertion - if (from2 > 0 && prop[from2 - 1] == prop[from2] && prop[from2] != -1) + if (prop[from2] != -1) { n = end[prop[from2]]; - for (i = prop[from2 - 1] == prop[from2] ? prop[from2] : from2; - i < n; i++) + if (from2 > 0 && prop[from2 - 1] == prop[from2]) + i = prop[from2]; + else + i = from2; + for (; i < n; i++) prop[i] = -1; }