diff options
author | Joseph Myers <joseph@codesourcery.com> | 2013-10-08 00:14:08 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2013-10-08 00:14:08 +0000 |
commit | 7602d070dca35a848aff1d72cf0724f02df72f62 (patch) | |
tree | a2764ad033962e9e3dd2918f9b16a52c40277624 /locale/programs/3level.h | |
parent | f17f137aaf563daf1ce5532763455b09f5db9b8f (diff) | |
download | glibc-7602d070dca35a848aff1d72cf0724f02df72f62.tar glibc-7602d070dca35a848aff1d72cf0724f02df72f62.tar.gz glibc-7602d070dca35a848aff1d72cf0724f02df72f62.tar.bz2 glibc-7602d070dca35a848aff1d72cf0724f02df72f62.zip |
Clean up locale file alignment handling.
Diffstat (limited to 'locale/programs/3level.h')
-rw-r--r-- | locale/programs/3level.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/locale/programs/3level.h b/locale/programs/3level.h index b8d6ca0235..c5f024fe35 100644 --- a/locale/programs/3level.h +++ b/locale/programs/3level.h @@ -270,7 +270,7 @@ CONCAT(add_locale_,TABLE) (struct locale_file *file, struct TABLE *t) + t->level1_size * sizeof (uint32_t) + (t->level2_size << t->q) * sizeof (uint32_t) + (t->level3_size << t->p) * sizeof (ELEMENT); - t->result_size = (last_offset + 3) & ~3ul; + t->result_size = LOCFILE_ALIGN_UP (last_offset); level2_offset = 5 * sizeof (uint32_t) @@ -308,7 +308,7 @@ CONCAT(add_locale_,TABLE) (struct locale_file *file, struct TABLE *t) t->level3_size << t->p); else abort (); - align_locale_data (file, 4); + align_locale_data (file, LOCFILE_ALIGN); end_locale_structure (file); if (t->level1_alloc > 0) |