kwiberg 8a44e1d87b Let RTC_[D]CHECK_op accept arguments of different signedness
With this change, instead of

  RTC_DCHECK_GE(unsigned_var, 17u);

we can simply write

  RTC_DCHECK_GE(unsigned_var, 17);

or even

  RTC_DCHECK_GE(unsigned_var, -17);  // Always true.

and the mathematically sensible thing will happen.

Perhaps more importantly, we can replace checks like

  // index is size_t, num_channels is int.
  RTC_DCHECK(num_channels >= 0
             && index < static_cast<size_t>(num_channels));

or, even worse, just

  // Surely num_channels isn't negative. That would be absurd!
  RTC_DCHECK_LT(index, static_cast<size_t>(num_channels));

with simply

  RTC_DCHECK_LT(index, num_channels);

In short, you no longer have to keep track of the signedness of the arguments, because the sensible thing will happen.

BUG=webrtc:6645

Review-Url: https://codereview.webrtc.org/2459793002
Cr-Commit-Position: refs/heads/master@{#14878}
2016-11-01 19:04:32 +00:00
..
2016-10-28 12:23:25 +00:00
2016-10-27 09:34:40 +00:00
2015-04-02 10:31:00 +00:00
2016-09-29 00:42:08 +00:00
2016-09-29 00:42:08 +00:00
2016-10-03 11:16:15 +00:00
2016-10-03 11:16:15 +00:00
2016-10-03 11:16:15 +00:00
2016-09-29 00:42:08 +00:00
2015-12-28 22:07:05 +00:00
2015-12-28 22:07:05 +00:00
2016-09-29 00:42:08 +00:00
2015-05-21 11:50:41 +00:00
2015-05-21 11:50:41 +00:00
2016-10-10 18:19:22 +00:00
2015-04-01 22:25:29 +00:00
2016-08-16 13:38:23 +00:00
2016-07-01 20:59:39 +00:00
2016-07-01 10:45:29 +00:00
2016-02-02 16:34:16 +00:00
2016-10-04 13:46:00 +00:00
2015-09-22 18:58:13 +00:00
2016-01-04 21:44:16 +00:00
2016-10-03 07:30:08 +00:00
2016-10-03 07:30:08 +00:00