summaryrefslogtreecommitdiff
path: root/vp9/common
diff options
context:
space:
mode:
authorJames Zern <jzern@google.com>2013-12-12 19:44:08 -0800
committerJames Zern <jzern@google.com>2013-12-12 19:49:19 -0800
commit178db94cd60d613f11b4f571399f238d7b5649e7 (patch)
treea3f3af2083a80063152beea9c5ce256199ba4577 /vp9/common
parentc2634188ceb2c0ce9256569004f985a5e7e76666 (diff)
downloadlibvpx-178db94cd60d613f11b4f571399f238d7b5649e7.tar
libvpx-178db94cd60d613f11b4f571399f238d7b5649e7.tar.gz
libvpx-178db94cd60d613f11b4f571399f238d7b5649e7.tar.bz2
libvpx-178db94cd60d613f11b4f571399f238d7b5649e7.zip
vp9 asserts: fix compile warning
string literal to int within an assert Change-Id: I0c889256b67a078e6e2a79577f0b7ae084243258
Diffstat (limited to 'vp9/common')
-rw-r--r--vp9/common/vp9_entropy.h2
-rw-r--r--vp9/common/vp9_pred_common.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/vp9/common/vp9_entropy.h b/vp9/common/vp9_entropy.h
index 721917f05..65b679ad2 100644
--- a/vp9/common/vp9_entropy.h
+++ b/vp9/common/vp9_entropy.h
@@ -166,7 +166,7 @@ static int get_entropy_context(TX_SIZE tx_size, const ENTROPY_CONTEXT *a,
left_ec = !!*(const uint64_t *)l;
break;
default:
- assert(!"Invalid transform size.");
+ assert(0 && "Invalid transform size.");
}
return combine_entropy_contexts(above_ec, left_ec);
diff --git a/vp9/common/vp9_pred_common.h b/vp9/common/vp9_pred_common.h
index 66cd15143..23722ba72 100644
--- a/vp9/common/vp9_pred_common.h
+++ b/vp9/common/vp9_pred_common.h
@@ -104,7 +104,7 @@ static const vp9_prob *get_tx_probs(TX_SIZE max_tx_size, int ctx,
case TX_32X32:
return tx_probs->p32x32[ctx];
default:
- assert(!"Invalid max_tx_size.");
+ assert(0 && "Invalid max_tx_size.");
return NULL;
}
}
@@ -124,7 +124,7 @@ static unsigned int *get_tx_counts(TX_SIZE max_tx_size, int ctx,
case TX_32X32:
return tx_counts->p32x32[ctx];
default:
- assert(!"Invalid max_tx_size.");
+ assert(0 && "Invalid max_tx_size.");
return NULL;
}
}