Skip to content

Commit

Permalink
namespace std is already included, so just call min(). fixes vc6 issu…
Browse files Browse the repository at this point in the history
…e with min macro

Signed-off-by: Aman Gupta <[email protected]>
  • Loading branch information
ghazel authored and tmm1 committed Oct 13, 2010
1 parent e118dd2 commit fdb31c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/ed.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ void EventableDescriptor::_GenericInboundDispatch(const char *buf, int size)

if (ProxyTarget) {
if (BytesToProxy > 0) {
unsigned long proxied = std::min(BytesToProxy, (unsigned long) size);
unsigned long proxied = min(BytesToProxy, (unsigned long) size);
ProxyTarget->SendOutboundData(buf, proxied);
BytesToProxy -= proxied;
if (BytesToProxy == 0) {
Expand Down

0 comments on commit fdb31c1

Please sign in to comment.