r38872 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r38871‎ | r38872 | r38873 >
Date:10:16, 8 August 2008
Author:river
Status:old
Tags:
Comment:
need to qualify std::pow() to avoid infinite recursion
Modified paths:
  • /trunk/extensions/AbuseFilter/parser_native/aftypes.cpp (modified) (history)

Diff [purge]

Index: trunk/extensions/AbuseFilter/parser_native/aftypes.cpp
@@ -352,7 +352,7 @@
353353
354354 datum
355355 pow(datum const &a, datum const &b) {
356 - datum result = datum(pow(a.toFloat(),b.toFloat()));
 356+ datum result = datum(std::pow(a.toFloat(),b.toFloat()));
357357
358358 return result;
359359 }

Status & tagging log