[FFmpeg-cvslog] tree: fix type used for testing the tree

Michael Niedermayer git at videolan.org
Mon Oct 29 22:47:13 CET 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Oct 29 22:21:25 2012 +0100| [977cb54f941c423eddbdc95c76fb41fde31f8afc] | committer: Michael Niedermayer

tree: fix type used for testing the tree

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=977cb54f941c423eddbdc95c76fb41fde31f8afc
---

 libavutil/tree.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavutil/tree.c b/libavutil/tree.c
index 5803c2a..45ec8d9 100644
--- a/libavutil/tree.c
+++ b/libavutil/tree.c
@@ -210,7 +210,7 @@ int main (void)
     av_lfg_init(&prng, 1);
 
     for (i = 0; i < 10000; i++) {
-        int j = av_lfg_get(&prng) % 86294;
+        intptr_t j = av_lfg_get(&prng) % 86294;
         if (check(root) > 999) {
             av_log(NULL, AV_LOG_ERROR, "FATAL error %d\n", i);
         print(root, 0);



More information about the ffmpeg-cvslog mailing list