diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/casetab.c | 11 |
2 files changed, 10 insertions, 6 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index ba05615a0c3..11189fc2d48 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | <<<<<<< ChangeLog | ||
| 2 | 2009-07-17 Kenichi Handa <handa@m17n.org> | ||
| 3 | |||
| 4 | * casetab.c (shuffle): Fix the logic of setting up the cycle. | ||
| 5 | |||
| 1 | 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | 6 | 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
| 2 | 7 | ||
| 3 | * nsfns.m (Fns_set_alpha): Remove function. | 8 | * nsfns.m (Fns_set_alpha): Remove function. |
diff --git a/src/casetab.c b/src/casetab.c index 423251df317..95fca03584b 100644 --- a/src/casetab.c +++ b/src/casetab.c | |||
| @@ -229,7 +229,6 @@ shuffle (table, c, elt) | |||
| 229 | { | 229 | { |
| 230 | if (NATNUMP (elt)) | 230 | if (NATNUMP (elt)) |
| 231 | { | 231 | { |
| 232 | Lisp_Object tem = Faref (table, elt); | ||
| 233 | int from, to; | 232 | int from, to; |
| 234 | 233 | ||
| 235 | if (CONSP (c)) | 234 | if (CONSP (c)) |
| @@ -241,11 +240,11 @@ shuffle (table, c, elt) | |||
| 241 | from = to = XINT (c); | 240 | from = to = XINT (c); |
| 242 | 241 | ||
| 243 | for (; from <= to; from++) | 242 | for (; from <= to; from++) |
| 244 | if (from != XINT (elt)) | 243 | { |
| 245 | { | 244 | Lisp_Object tem = Faref (table, elt); |
| 246 | Faset (table, elt, make_number (from)); | 245 | Faset (table, elt, make_number (from)); |
| 247 | Faset (table, make_number (from), tem); | 246 | Faset (table, make_number (from), tem); |
| 248 | } | 247 | } |
| 249 | } | 248 | } |
| 250 | } | 249 | } |
| 251 | 250 | ||