mirror of
https://gitee.com/openharmony/third_party_libsnd
synced 2025-02-18 18:07:49 +00:00
src/caf.c: Fix for 32 bit CPUs
This commit is contained in:
parent
b64b37777f
commit
9b3abb11c2
@ -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 */
|
||||
|
||||
/*==============================================================================
|
||||
|
@ -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 ;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user