about summary refs log tree commit
path: root/src/libFLAC/format.c
diff options
context:
space:
mode:
authorjcoalson <jcoalson>2002-11-06 07:11:26 +0000
committerjcoalson <jcoalson>2002-11-06 07:11:26 +0000
commitee65f895f977863f33026844ada6725c3fbcd403 (patch)
tree1aecb319ca59b02e0870c56c02789eed97913ea9 /src/libFLAC/format.c
parent6461581365a3a999a93725ac4d9fde21791b59c1 (diff)
downloadflac-arm-1.1.3-ee65f895f977863f33026844ada6725c3fbcd403.tar.gz
more strict typecasts
Diffstat (limited to 'src/libFLAC/format.c')
-rw-r--r--src/libFLAC/format.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libFLAC/format.c b/src/libFLAC/format.c
index c56334c7..b1da684c 100644
--- a/src/libFLAC/format.c
+++ b/src/libFLAC/format.c
@@ -278,9 +278,9 @@ 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 = realloc(object->parameters, sizeof(unsigned)*(1 << max_partition_order))))
+                if(0 == (object->parameters = (unsigned*)realloc(object->parameters, sizeof(unsigned)*(1 << max_partition_order))))
                         return false;
-                if(0 == (object->raw_bits = realloc(object->raw_bits, sizeof(unsigned)*(1 << max_partition_order))))
+                if(0 == (object->raw_bits = (unsigned*)realloc(object->raw_bits, sizeof(unsigned)*(1 << max_partition_order))))
                         return false;
                 object->capacity_by_order = max_partition_order;
         }