summaryrefslogtreecommitdiff
path: root/progs/tools/trace/gltrace_support.cc
diff options
context:
space:
mode:
Diffstat (limited to 'progs/tools/trace/gltrace_support.cc')
-rw-r--r--progs/tools/trace/gltrace_support.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/progs/tools/trace/gltrace_support.cc b/progs/tools/trace/gltrace_support.cc
index fb0404c450..b188e73f29 100644
--- a/progs/tools/trace/gltrace_support.cc
+++ b/progs/tools/trace/gltrace_support.cc
@@ -20,6 +20,7 @@
*/
#include "gltrace_support.h"
+#include <assert.h>
#include <sstream>
#include <fstream>
#include <iomanip>
@@ -34,7 +35,7 @@ namespace {
{
static char buf[4096];
int status;
- unsigned int length = sizeof(buf)-1;
+ size_t length = sizeof(buf)-1;
memset (buf, 0, sizeof(buf));