changeset 1187:875baf383f0c trunk

suppress warnings on AMD64.
author Yoshiki Yazawa <yaz@cc.rim.or.jp>
date Mon, 18 Jun 2007 15:15:32 +0900
parents e0956f08bfb7
children 22a470857579
files src/flacng/seekable_stream_callbacks.c src/flacng/seekable_stream_callbacks.h
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/flacng/seekable_stream_callbacks.c	Sat Jun 16 17:06:39 2007 +0900
+++ b/src/flacng/seekable_stream_callbacks.c	Mon Jun 18 15:15:32 2007 +0900
@@ -29,7 +29,7 @@
 
 /* === */
 
-FLAC__StreamDecoderReadStatus read_callback(const FLAC__StreamDecoder *decoder, FLAC__byte buffer[], unsigned *bytes, void *client_data) {
+FLAC__StreamDecoderReadStatus read_callback(const FLAC__StreamDecoder *decoder, FLAC__byte buffer[], size_t *bytes, void *client_data) {
 
     callback_info* info;
     gint to_read;
@@ -95,7 +95,7 @@
     _DEBUG("Seeking to %lld", absolute_byte_offset);
 
     if (0 != vfs_fseek(info->input_stream, absolute_byte_offset, SEEK_SET)) {
-        _ERROR("Could not seek to %lld!", absolute_byte_offset);
+        _ERROR("Could not seek to %lld!", (long long)absolute_byte_offset);
         _LEAVE FLAC__STREAM_DECODER_SEEK_STATUS_ERROR;
     }
 
--- a/src/flacng/seekable_stream_callbacks.h	Sat Jun 16 17:06:39 2007 +0900
+++ b/src/flacng/seekable_stream_callbacks.h	Mon Jun 18 15:15:32 2007 +0900
@@ -23,7 +23,7 @@
 #include "flac_compat113.h"
 #include "flac_compat114.h"
 
-FLAC__StreamDecoderReadStatus read_callback(const FLAC__StreamDecoder *decoder, FLAC__byte buffer[], unsigned *bytes, void *client_data);
+FLAC__StreamDecoderReadStatus read_callback(const FLAC__StreamDecoder *decoder, FLAC__byte buffer[], size_t *bytes, void *client_data);
 FLAC__StreamDecoderSeekStatus seek_callback(const FLAC__StreamDecoder *decoder, FLAC__uint64 absolute_byte_offset, void *client_data);
 FLAC__StreamDecoderTellStatus tell_callback(const FLAC__StreamDecoder *decoder, FLAC__uint64 *absolute_byte_offset, void *client_data);
 FLAC__bool eof_callback(const FLAC__StreamDecoder *decoder, void *client_data);