aboutsummaryrefslogtreecommitdiffstats
path: root/test/gtest-filepath_test.cc
diff options
context:
space:
mode:
authorzhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925>2009-01-29 06:49:00 +0000
committerzhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925>2009-01-29 06:49:00 +0000
commit4b83461e9772cce62e84310060fe84172e9bf4ba (patch)
tree81c398e25c7db78187ecb3c6a756b9996140943b /test/gtest-filepath_test.cc
parentc946ae60194727ede9d3ef44754839f48541a981 (diff)
downloadgoogletest-4b83461e9772cce62e84310060fe84172e9bf4ba.tar.gz
googletest-4b83461e9772cce62e84310060fe84172e9bf4ba.tar.bz2
googletest-4b83461e9772cce62e84310060fe84172e9bf4ba.zip
Fixes some warnings when compiled with MSVC at warning level 4.
Diffstat (limited to 'test/gtest-filepath_test.cc')
-rw-r--r--test/gtest-filepath_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/gtest-filepath_test.cc b/test/gtest-filepath_test.cc
index 589442fe..ee80f0d9 100644
--- a/test/gtest-filepath_test.cc
+++ b/test/gtest-filepath_test.cc
@@ -311,7 +311,7 @@ TEST(RemoveTrailingPathSeparatorTest, ShouldReturnUnmodified) {
TEST(DirectoryTest, RootDirectoryExists) {
#ifdef GTEST_OS_WINDOWS // We are on Windows.
char current_drive[_MAX_PATH]; // NOLINT
- current_drive[0] = _getdrive() + 'A' - 1;
+ current_drive[0] = static_cast<char>(_getdrive() + 'A' - 1);
current_drive[1] = ':';
current_drive[2] = '\\';
current_drive[3] = '\0';