src/caf.c: Fix for 32 bit CPUs

This commit is contained in:
Erik de Castro Lopo 2016-01-04 14:33:36 +11:00
parent b64b37777f
commit 9b3abb11c2
2 changed files with 8 additions and 3 deletions

View File

@ -974,7 +974,7 @@ caf_write_strings (SF_PRIVATE * psf, int location)
if (string_count == 0 || buf.index == 0)
return ;
psf_binheader_writef (psf, "Em84b", info_MARKER, buf.index + 4, string_count, buf.s, make_size_t (buf.index)) ;
psf_binheader_writef (psf, "Em84b", info_MARKER, make_size_8 (buf.index + 4), string_count, buf.s, make_size_t (buf.index)) ;
} /* caf_write_strings */
/*==============================================================================

View File

@ -1,5 +1,5 @@
/*
** Copyright (C) 1999-2014 Erik de Castro Lopo <erikd@mega-nerd.com>
** Copyright (C) 1999-2016 Erik de Castro Lopo <erikd@mega-nerd.com>
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU Lesser General Public License as published by
@ -264,7 +264,12 @@ struct SF_CHUNK_ITERATOR
static inline size_t
make_size_t (int x)
{ return (size_t) x ;
} /* size_t_of_int */
} /* make_size_t */
static inline uint64_t
make_size_8 (int x)
{ return (uint64_t) x ;
} /* make_size_8 */
typedef SF_BROADCAST_INFO_VAR (16 * 1024) SF_BROADCAST_INFO_16K ;