aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
authorPaul Eggert2011-05-06 00:13:19 -0700
committerPaul Eggert2011-05-06 00:13:19 -0700
commitb08a63ccec4bda5556777ab8538b92726fd55a1e (patch)
treeceff3193260c813b66dff7254920ef8dc4a05b3f /src/coding.c
parent548d0a63d6212c0baef9a3d2bf0093cceb4e1136 (diff)
parent8ff0ac3c78498c905a22786aa124f59d213b99a0 (diff)
downloademacs-b08a63ccec4bda5556777ab8538b92726fd55a1e.tar.gz
emacs-b08a63ccec4bda5556777ab8538b92726fd55a1e.zip
Do not assume EMACS_INT is the same width as a pointer.
This prepares for a future patch that will prefer 64-bit EMACS_INT if available. That patch can be tried now, by compiling with -DWIDE_EMACS_INT, but it is temporarily not the default so that it can be further tested. Also, install some other fixes for problems discovered by the static checking of GCC 4.6.0. Fixes: debbugs:8545 debbugs:8601 debbugs:8600 debbugs:8602
Diffstat (limited to 'src/coding.c')
-rw-r--r--src/coding.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/coding.c b/src/coding.c
index d17346efdcb..71253df6469 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -5368,8 +5368,8 @@ detect_coding_charset (struct coding_system *coding,
5368 if (src == src_end) 5368 if (src == src_end)
5369 goto too_short; 5369 goto too_short;
5370 ONE_MORE_BYTE (c); 5370 ONE_MORE_BYTE (c);
5371 if (c < charset->code_space[(dim - 1 - idx) * 2] 5371 if (c < charset->code_space[(dim - 1 - idx) * 4]
5372 || c > charset->code_space[(dim - 1 - idx) * 2 + 1]) 5372 || c > charset->code_space[(dim - 1 - idx) * 4 + 1])
5373 break; 5373 break;
5374 } 5374 }
5375 if (idx < dim) 5375 if (idx < dim)