From 53173dac6403e9e882b1b57b327c98eb8a43f1cd Mon Sep 17 00:00:00 2001 From: Tanya Lattner Date: Sat, 29 Jan 2005 23:08:01 +0000 Subject: [PATCH] Make this work on systems where size_t is not the same as unsigned. llvm-svn: 19928 --- lib/Support/Compressor.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/Support/Compressor.cpp b/lib/Support/Compressor.cpp index 1d8e57e348b..8d13e746694 100644 --- a/lib/Support/Compressor.cpp +++ b/lib/Support/Compressor.cpp @@ -36,6 +36,14 @@ static int getdata(char*& buffer, size_t &size, return result; } +static int getdata(char*& buffer, unsigned &size, + llvm::Compressor::OutputDataCallback* cb, void* context) { + size_t SizeOut; + int Res = getdata(buffer, SizeOut, cb, context); + size = SizeOut; + return Res; +} + //===----------------------------------------------------------------------===// //=== NULLCOMP - a compression like set of routines that just copies data //=== without doing any compression. This is provided so that if the