diff options
| author | Paul Eggert | 2011-09-21 13:17:56 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-09-21 13:17:56 -0700 |
| commit | 537775e84d41ffa9ea944661a786a3c3aace1c3b (patch) | |
| tree | cb1c8f36bf3fd20386a61e499350a55ed58961ad /src | |
| parent | 3f11f878a0e2b173df4fefaa8d89b5f38640ec1d (diff) | |
| download | emacs-537775e84d41ffa9ea944661a786a3c3aace1c3b.tar.gz emacs-537775e84d41ffa9ea944661a786a3c3aace1c3b.zip | |
* ftfont.c (ftfont_shape_by_flt): Add lint_assume to pacify GCC 4.6.1 x86-64.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 2 | ||||
| -rw-r--r-- | src/ftfont.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 382ca0f4e25..cc0918e6030 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -178,6 +178,7 @@ | |||
| 178 | (Frem): Don't assume arg is nonnegative. | 178 | (Frem): Don't assume arg is nonnegative. |
| 179 | * dbusbind.c (xd_append_arg): Check for integers out of range. | 179 | * dbusbind.c (xd_append_arg): Check for integers out of range. |
| 180 | (Fdbus_call_method): Don't overflow the timeout int. | 180 | (Fdbus_call_method): Don't overflow the timeout int. |
| 181 | |||
| 181 | * dired.c (directory_files_internal, file_name_completion, scmp) | 182 | * dired.c (directory_files_internal, file_name_completion, scmp) |
| 182 | (file_name_completion_stat): | 183 | (file_name_completion_stat): |
| 183 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | 184 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. |
| @@ -332,7 +333,6 @@ | |||
| 332 | Check that fixnums are in proper range for system types. | 333 | Check that fixnums are in proper range for system types. |
| 333 | (ftfont_shape_by_flt): | 334 | (ftfont_shape_by_flt): |
| 334 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | 335 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. |
| 335 | Remove no-longer-needed lint_assume. | ||
| 336 | * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): | 336 | * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): |
| 337 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | 337 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. |
| 338 | (Fgnutls_error_fatalp, Fgnutls_error_string, Fgnutls_boot): | 338 | (Fgnutls_error_fatalp, Fgnutls_error_string, Fgnutls_boot): |
diff --git a/src/ftfont.c b/src/ftfont.c index 5f8dbb4d455..9da4a98d692 100644 --- a/src/ftfont.c +++ b/src/ftfont.c | |||
| @@ -2416,6 +2416,7 @@ ftfont_shape_by_flt (Lisp_Object lgstring, struct font *font, | |||
| 2416 | } | 2416 | } |
| 2417 | 2417 | ||
| 2418 | len = i; | 2418 | len = i; |
| 2419 | lint_assume (len <= STRING_BYTES_BOUND); | ||
| 2419 | 2420 | ||
| 2420 | if (with_variation_selector) | 2421 | if (with_variation_selector) |
| 2421 | { | 2422 | { |