commit | 2396b272d9a2b074351549e46d0c79cf6bd35006 | [log] [tgz] |
---|---|---|
author | andrew@webrtc.org <andrew@webrtc.org> | Tue Dec 16 20:47:42 2014 |
committer | andrew@webrtc.org <andrew@webrtc.org> | Tue Dec 16 20:47:42 2014 |
tree | cd7d4ca90cacbf1961d2be9ab477135855722bc0 | |
parent | f7ba08f5c048758ed45b5be4187cbb4983126f8e [diff] |
Add (safe) uint32_t cast to fix Win64 build. TBR=kwiberg@webrtc.org Review URL: https://webrtc-codereview.appspot.com/36539004 git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@7916 4adac7df-926f-26a2-2b94-8c16560cd09d
diff --git a/common_audio/wav_file.cc b/common_audio/wav_file.cc index 21e7ff1..cc96e41 100644 --- a/common_audio/wav_file.cc +++ b/common_audio/wav_file.cc
@@ -68,7 +68,7 @@ // If we didn't read what was requested, ensure we've reached the EOF. CHECK(read == num_samples || feof(file_handle_)); CHECK_LE(read, num_samples_remaining_); - num_samples_remaining_ -= read; + num_samples_remaining_ -= static_cast<uint32_t>(read); return read; }