[Webkit-unassigned] [Bug 52401] Make CheckedInt<long> and CheckedInt<unsigned long> work

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jan 14 06:07:27 PST 2011


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





--- Comment #5 from Zhenyao Mo <zmo at google.com>  2011-01-14 06:07:27 PST ---
(In reply to comment #4)
> OK, so, at a quick glance, the most likely reason for this not working is that CheckedInt relies on template specializations of integer_type_manually_recorded_info<T> for types such as int32_t, int64_t, etc, and probably 'long' doesn't match any of those types, hence it fails to compile?
> 
> One must be careful here of not breaking the case where long is the same type as one of the int32_t (etc) types. The solution is to let the general case of integer_type_manually_recorded_info<T> check for a few types such as long, int, etc, before bailing out and declaring the type as unsupported as it currently does. Will provide patch asap.

Thanks for looking into this!

The compiler is complaining about <T=long, U=long> not supported.
If I put int, it is <T=int32_t, U=int64_t>, and if I put long long, it is <T=int64_6, U=undefined>, and both compiles fine.

-- 
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