From aee2419c16af7d60997599fbe214acc0e24b045c Mon Sep 17 00:00:00 2001 From: Kongqun Yang Date: Wed, 5 Mar 2014 14:56:44 -0800 Subject: [PATCH] Remove UINT32_MAX in xml_node.cc UINT32_MAX is not defined in C++. It was brought in indirectly from libxml. http://stackoverflow.com/questions/1471353/whats-the-c-equivalent-of-uint32-max Change-Id: I1bdb0a3d06a40d439d81f283934c24df271fb740 --- mpd/base/xml/xml_node.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mpd/base/xml/xml_node.cc b/mpd/base/xml/xml_node.cc index 160fd42b4f..474f440eb9 100644 --- a/mpd/base/xml/xml_node.cc +++ b/mpd/base/xml/xml_node.cc @@ -423,7 +423,7 @@ bool RepresentationXmlNode::AddAudioChannelInfo( void RepresentationXmlNode::AddAudioSamplingRateInfo( const RepeatedAudioInfo& repeated_audio_info) { bool has_sampling_frequency = false; - uint32 min_sampling_frequency = UINT32_MAX; + uint32 min_sampling_frequency = kuint32max; uint32 max_sampling_frequency = 0; for (int i = 0; i < repeated_audio_info.size(); ++i) {