[Webkit-unassigned] [Bug 74498] ensure consistent heuristics

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Dec 21 12:24:21 PST 2011


https://bugs.webkit.org/show_bug.cgi?id=74498





--- Comment #3 from Martin Robinson <mrobinson at webkit.org>  2011-12-21 12:24:21 PST ---
(From update of attachment 119203)
View in context: https://bugs.webkit.org/attachment.cgi?id=119203&action=review

> Source/JavaScriptCore/runtime/Options.cpp:51
> +#define CLAMP(var, min, max) var = ((var <= min) ? min : ((var >= max) ? max : var))

Perhaps it's possible to use clampTo from MathExtras.h here? It looks suspiciously like it already handles numeric_limits minimums, but I don't know if it has support for int32_t yet.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list