Use numeric_limits instead of SSIZE_MAX.

It seems a version of arm-linux-gcc doesn't have this symbol.
http://code.google.com/p/google-glog/issues/detail?id=18



git-svn-id: https://google-glog.googlecode.com/svn/trunk@73 eb4d4688-79bd-11dd-afb4-1d65580434c0
This commit is contained in:
2009-11-11 09:06:51 +00:00
parent 90e7825e55
commit effef71e00

View File

@ -50,6 +50,8 @@
#if defined(HAVE_SYMBOLIZE)
#include <limits>
#include "symbolize.h"
#include "demangle.h"
@ -121,7 +123,7 @@ _START_GOOGLE_NAMESPACE_
// success, return the number of bytes read. Otherwise, return -1.
static ssize_t ReadPersistent(const int fd, void *buf, const size_t count) {
SAFE_ASSERT(fd >= 0);
SAFE_ASSERT(count >= 0 && count <= SSIZE_MAX);
SAFE_ASSERT(count >= 0 && count <= std::numeric_limits<ssize_t>::max());
char *buf0 = reinterpret_cast<char *>(buf);
ssize_t num_bytes = 0;
while (num_bytes < count) {