From 4808617ef54d40efcf1a3ed30525898defb74e10 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 9 Oct 2008 20:20:34 +0000 Subject: More cache development. I'm going to have to switch from template functions to functors. I like template functions a little more, but functors can be at least as fast. It won't be much of a change. --- src/membuf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/membuf.cpp') diff --git a/src/membuf.cpp b/src/membuf.cpp index e7c7ac8..f22a8de 100644 --- a/src/membuf.cpp +++ b/src/membuf.cpp @@ -52,7 +52,7 @@ size_t Bu::MemBuf::write( const void *pBuf, size_t nBytes ) { // Trickier, we must do this in two parts, overwrite, then append // Frist, overwrite. - int iOver = sBuf.getSize() - nPos; + size_t iOver = sBuf.getSize() - nPos; if( iOver > nBytes ) iOver = nBytes; memcpy( sBuf.getStr()+nPos, pBuf, iOver ); -- cgit v1.2.3