projects
/
platform
/
upstream
/
glog.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e610f6
)
Use intptr_t instead of int to cast from char* for Snow Leopard.
author
<shinichiro.hamaji@gmail.com>
<>
Wed, 7 Oct 2009 08:52:14 +0000
(08:52 +0000)
committer
<shinichiro.hamaji@gmail.com>
<>
Wed, 7 Oct 2009 08:52:14 +0000
(08:52 +0000)
git-svn-id: https://google-glog.googlecode.com/svn/trunk@72
eb4d4688
-79bd-11dd-afb4-
1d65580434c0
src/logging.cc
patch
|
blob
|
history
diff --git
a/src/logging.cc
b/src/logging.cc
index
8c64274
..
aa32f26
100644
(file)
--- a/
src/logging.cc
+++ b/
src/logging.cc
@@
-1755,7
+1755,7
@@
int posix_strerror_r(int err, char *buf, size_t len) {
} else {
buf[0] = '\000';
#if defined(OS_MACOSX) || defined(OS_FREEBSD) || defined(OS_OPENBSD)
- if (reinterpret_cast<int>(rc) < sys_nerr) {
+ if (reinterpret_cast<int
ptr_t
>(rc) < sys_nerr) {
// This means an error on MacOSX or FreeBSD.
return -1;
}