Use long long to see the same size between LP64 and LLP64

This commit is contained in:
Akira TAGOH 2015-10-13 13:04:18 +09:00
parent c88d9b6242
commit a44cc450b5
2 changed files with 2 additions and 2 deletions

View File

@ -573,7 +573,7 @@ FcCacheTimeValid (FcConfig *config, FcCache *cache, struct stat *dir_stat)
#ifdef HAVE_STRUCT_STAT_ST_MTIM #ifdef HAVE_STRUCT_STAT_ST_MTIM
fnano = (cache->checksum_nano == dir_stat->st_mtim.tv_nsec); fnano = (cache->checksum_nano == dir_stat->st_mtim.tv_nsec);
if (FcDebug () & FC_DBG_CACHE) if (FcDebug () & FC_DBG_CACHE)
printf ("FcCacheTimeValid dir \"%s\" cache checksum %d.%ld dir checksum %d.%ld\n", printf ("FcCacheTimeValid dir \"%s\" cache checksum %d.%lld dir checksum %d.%ld\n",
FcCacheDir (cache), cache->checksum, cache->checksum_nano, (int) dir_stat->st_mtime, dir_stat->st_mtim.tv_nsec); FcCacheDir (cache), cache->checksum, cache->checksum_nano, (int) dir_stat->st_mtime, dir_stat->st_mtim.tv_nsec);
#else #else
if (FcDebug () & FC_DBG_CACHE) if (FcDebug () & FC_DBG_CACHE)

View File

@ -369,7 +369,7 @@ struct _FcCache {
int dirs_count; /* number of subdir strings */ int dirs_count; /* number of subdir strings */
intptr_t set; /* offset to font set */ intptr_t set; /* offset to font set */
int checksum; /* checksum of directory state */ int checksum; /* checksum of directory state */
long checksum_nano; /* checksum of directory state */ long long checksum_nano; /* checksum of directory state */
}; };
#undef FcCacheDir #undef FcCacheDir