mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-11-24 23:10:10 +01:00
Fix minor compiler warnings
This commit is contained in:
parent
60945577c0
commit
9291e33312
@ -396,6 +396,9 @@ VGMSTREAM * init_vgmstream_bnk_sony(STREAMFILE *streamFile) {
|
||||
vgmstream->loop_start_sample = loop_start;
|
||||
vgmstream->loop_end_sample = loop_end;
|
||||
break;
|
||||
|
||||
default:
|
||||
goto fail;
|
||||
}
|
||||
|
||||
if (name_offset)
|
||||
|
@ -808,7 +808,7 @@ static int parse_num(STREAMFILE * streamFile, txth_header * txth, const char * v
|
||||
if (sscanf(val, hex ? "@%x" : "@%u", &offset) != 1) goto fail;
|
||||
}
|
||||
|
||||
if (offset < 0 || offset > get_streamfile_size(streamFile))
|
||||
if (/*offset < 0 ||*/ offset > get_streamfile_size(streamFile))
|
||||
goto fail;
|
||||
|
||||
if (ed1 == 'B' && ed2 == 'E')
|
||||
|
@ -25,8 +25,8 @@ typedef struct {
|
||||
size_t entry_count;
|
||||
size_t entry_max;
|
||||
|
||||
size_t loop_start_segment;
|
||||
size_t loop_end_segment;
|
||||
uint32_t loop_start_segment;
|
||||
uint32_t loop_end_segment;
|
||||
|
||||
size_t is_layered;
|
||||
} txtp_header;
|
||||
|
@ -2188,7 +2188,7 @@ int vgmstream_do_loop(VGMSTREAM * vgmstream) {
|
||||
/* Write a description of the stream into array pointed by desc, which must be length bytes long.
|
||||
* Will always be null-terminated if length > 0 */
|
||||
void describe_vgmstream(VGMSTREAM * vgmstream, char * desc, int length) {
|
||||
#define TEMPSIZE 256
|
||||
#define TEMPSIZE (256+32)
|
||||
char temp[TEMPSIZE];
|
||||
const char* description;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user