summaryrefslogtreecommitdiffstats
path: root/include/gtest/internal/gtest-internal.h
diff options
context:
space:
mode:
authorzhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925>2010-08-31 18:21:13 (GMT)
committerzhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925>2010-08-31 18:21:13 (GMT)
commit35c39756495bea5959de5778aaaf33a94f8c1e2e (patch)
treefe8cac8d619895feaa69a4e3678f1edd9d4945c4 /include/gtest/internal/gtest-internal.h
parenta9f380f5c7ff75cd715c58e11885dddc54baef02 (diff)
downloadgoogletest-35c39756495bea5959de5778aaaf33a94f8c1e2e.zip
googletest-35c39756495bea5959de5778aaaf33a94f8c1e2e.tar.gz
googletest-35c39756495bea5959de5778aaaf33a94f8c1e2e.tar.bz2
Casts char to unsigned char before calling isspace() etc to avoid undefined behavior (by Zhanyong Wan); removes conditional #includes keyed on GTEST_HAS_PROTOBUF_ (by Zhanyong Wan); publishes GTEST_HAS_STREAM_REDIRECTION (by Vlad Losev); forward declares some classes properly (by Samuel Benzaquen); honors the --gtest_catch_exceptions flag (by Vlad Losev).
Diffstat (limited to 'include/gtest/internal/gtest-internal.h')
-rw-r--r--include/gtest/internal/gtest-internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/gtest/internal/gtest-internal.h b/include/gtest/internal/gtest-internal.h
index 1e453df..9cf9dd8 100644
--- a/include/gtest/internal/gtest-internal.h
+++ b/include/gtest/internal/gtest-internal.h
@@ -625,7 +625,7 @@ inline const char* SkipComma(const char* str) {
if (comma == NULL) {
return NULL;
}
- while (isspace(*(++comma))) {}
+ while (IsSpace(*(++comma))) {}
return comma;
}