diff options
author | hbono@chromium.org <hbono@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-23 07:14:49 +0000 |
---|---|---|
committer | hbono@chromium.org <hbono@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-23 07:14:49 +0000 |
commit | 0428f2c18b8ddb7d9e90edda336ad71f7dbf0dac (patch) | |
tree | 5add7d7d47f86ed5a597467d2246b09ace262b06 /base | |
parent | 4ea6cab1939dff2111f779d8fff80e5dc5d7b8c6 (diff) | |
download | chromium_src-0428f2c18b8ddb7d9e90edda336ad71f7dbf0dac.zip chromium_src-0428f2c18b8ddb7d9e90edda336ad71f7dbf0dac.tar.gz chromium_src-0428f2c18b8ddb7d9e90edda336ad71f7dbf0dac.tar.bz2 |
Fixes a build break caused by r10178.
r10178 compares an int value 'written' with a size_t value 'sizeof(num_open_files)' in "base/process_util_unittest.cc" and it caused a compilation error on Mac and Linux.
As a quick fix, this change casts the int value 'written' to size_t.
TBR=xji
Review URL: http://codereview.chromium.org/28019
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10179 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r-- | base/process_util_unittest.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/base/process_util_unittest.cc b/base/process_util_unittest.cc index a3b6e5b..578ac3f 100644 --- a/base/process_util_unittest.cc +++ b/base/process_util_unittest.cc @@ -182,7 +182,7 @@ MULTIPROCESS_TEST_MAIN(ProcessUtilsLeakFDChildProcess) { num_open_files -= expected_num_open_fds; int written = write(write_pipe, &num_open_files, sizeof(num_open_files)); - DCHECK_EQ(written, sizeof(num_open_files)); + DCHECK_EQ(static_cast<size_t>(written), sizeof(num_open_files)); close(write_pipe); return 0; |