~ubuntu-branches/ubuntu/karmic/webkit/karmic-proposed

« back to all changes in this revision

Viewing changes to JavaScriptCore/wtf/StdLibExtras.h

  • Committer: Bazaar Package Importer
  • Author(s): Gustavo Noronha Silva
  • Date: 2009-05-15 18:30:58 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20090515183058-50q5exjo9b1kxy9s
Tags: 1.1.7-1
* New upstream release
* debian/libwebkit-1.0-2.symbols:
- updated with the new symbols in 1.1.7
* debian/libwebkit-dev.install, debian/libwebkit-dev.links,
  debian/rules:
- Build, and ship gtk-doc documentation (Closes: #526683)
* debian/copyright:
- updated.

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
     * C++'s idea of a reinterpret_cast lacks sufficient cojones.
48
48
     */
49
49
    template<typename TO, typename FROM>
50
 
    TO bitwise_cast(FROM in)
 
50
    TO bitwise_cast(FROM from)
51
51
    {
52
 
        COMPILE_ASSERT(sizeof(TO) == sizeof(FROM), WTF_wtf_reinterpret_cast_sizeof_types_is_equal);
 
52
        COMPILE_ASSERT(sizeof(TO) == sizeof(FROM), WTF_bitwise_cast_sizeof_casted_types_is_equal);
53
53
        union {
54
54
            FROM from;
55
55
            TO to;
56
56
        } u;
57
 
        u.from = in;
 
57
        u.from = from;
58
58
        return u.to;
59
59
    }
60
60