mirror of
https://github.com/holub/mame
synced 2025-05-31 10:01:51 +03:00
Fixed compilation under VS2010 (no whatsnew)
This commit is contained in:
parent
9af89c3a52
commit
7fa8181aca
@ -274,6 +274,7 @@ CPU_DISASSEMBLE( z8000 )
|
||||
tmp = new_pc + -2 * tmp;
|
||||
break;
|
||||
default:
|
||||
tmp = 0;
|
||||
abort();
|
||||
}
|
||||
if (segm)
|
||||
|
@ -581,11 +581,11 @@ FLAC__bool FLAC__format_entropy_coding_method_partitioned_rice_contents_ensure_s
|
||||
FLAC__ASSERT(object->capacity_by_order > 0 || (0 == object->parameters && 0 == object->raw_bits));
|
||||
|
||||
if(object->capacity_by_order < max_partition_order) {
|
||||
if(0 == (object->parameters = (unsigned*)realloc(object->parameters, sizeof(unsigned)*(1 << max_partition_order))))
|
||||
if(0 == (object->parameters = (unsigned*)realloc(object->parameters, sizeof(unsigned)*((unsigned long long)1 << max_partition_order))))
|
||||
return false;
|
||||
if(0 == (object->raw_bits = (unsigned*)realloc(object->raw_bits, sizeof(unsigned)*(1 << max_partition_order))))
|
||||
if(0 == (object->raw_bits = (unsigned*)realloc(object->raw_bits, sizeof(unsigned)*((unsigned long long)1 << max_partition_order))))
|
||||
return false;
|
||||
memset(object->raw_bits, 0, sizeof(unsigned)*(1 << max_partition_order));
|
||||
memset(object->raw_bits, 0, sizeof(unsigned)*((unsigned long long)1 << max_partition_order));
|
||||
object->capacity_by_order = max_partition_order;
|
||||
}
|
||||
|
||||
|
@ -3744,9 +3744,9 @@ unsigned find_best_partition_order_(
|
||||
|
||||
/* save best parameters and raw_bits */
|
||||
FLAC__format_entropy_coding_method_partitioned_rice_contents_ensure_size(prc, max(6, best_partition_order));
|
||||
memcpy(prc->parameters, private_->partitioned_rice_contents_extra[best_parameters_index].parameters, sizeof(unsigned)*(1<<(best_partition_order)));
|
||||
memcpy(prc->parameters, private_->partitioned_rice_contents_extra[best_parameters_index].parameters, sizeof(unsigned)*((unsigned long long)1<<(best_partition_order)));
|
||||
if(do_escape_coding)
|
||||
memcpy(prc->raw_bits, private_->partitioned_rice_contents_extra[best_parameters_index].raw_bits, sizeof(unsigned)*(1<<(best_partition_order)));
|
||||
memcpy(prc->raw_bits, private_->partitioned_rice_contents_extra[best_parameters_index].raw_bits, sizeof(unsigned)*((unsigned long long)1<<(best_partition_order)));
|
||||
/*
|
||||
* Now need to check if the type should be changed to
|
||||
* FLAC__ENTROPY_CODING_METHOD_PARTITIONED_RICE2 based on the
|
||||
|
Loading…
Reference in New Issue
Block a user