<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>94124</bug_id>
          
          <creation_ts>2012-08-15 10:51:48 -0700</creation_ts>
          <short_desc>clipboardwin compile error for win64</short_desc>
          <delta_ts>2012-11-26 14:12:28 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebCore Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows 7</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Alex Christensen">alex.christensen</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>roger_fong</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>696133</commentid>
    <comment_count>0</comment_count>
    <who name="Alex Christensen">alex.christensen</who>
    <bug_when>2012-08-15 10:51:48 -0700</bug_when>
    <thetext>There are a few places in the clipboard utilities code that use std::min with an unsigned int parameter and a size_t parameter, which doesn&apos;t cause a problem when compiling for 32-bit windows, but it does cause a problem when compiling for 64-bit windows.  To resolve this issue, I specify the template type as the type the return value is being cast into.

https://github.com/achristensen07/webkit64prep

patch coming soon</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>696138</commentid>
    <comment_count>1</comment_count>
      <attachid>158592</attachid>
    <who name="Alex Christensen">alex.christensen</who>
    <bug_when>2012-08-15 10:56:00 -0700</bug_when>
    <thetext>Created attachment 158592
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>696688</commentid>
    <comment_count>2</comment_count>
      <attachid>158592</attachid>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2012-08-15 20:44:20 -0700</bug_when>
    <thetext>Comment on attachment 158592
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=158592&amp;action=review

Looks fine to me (and the EWS).  Please revise the ChangeLog notes and I think we are ready to land/

&gt; Source/WebCore/ChangeLog:5
&gt; +

I think you should include your helpful explanation here:

&quot;The clipboard utilities code uses std::min with one unsigned int parameter and one size_t parameter. This causes a problem when compiling for 64-bit windows because the two types are not the same size.  To resolve this issue, we specify the template type as the type the return value is being cast into.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>697477</commentid>
    <comment_count>3</comment_count>
    <who name="Alex Christensen">alex.christensen</who>
    <bug_when>2012-08-16 13:49:13 -0700</bug_when>
    <thetext>Not only that, but my patch is missing my changes to ClipboardWin.cpp.

Bad news: my computer just died, and I&apos;m just about to change jobs, so it will be a while (~4 months) before I can properly patch this.  If someone else wants to, be my guest.  Sorry.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>775871</commentid>
    <comment_count>4</comment_count>
      <attachid>158592</attachid>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2012-11-26 14:10:22 -0800</bug_when>
    <thetext>Comment on attachment 158592
Patch

R+ for content. I&apos;m adding the text I asked for in the ChangeLog while landing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>775876</commentid>
    <comment_count>5</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2012-11-26 14:12:28 -0800</bug_when>
    <thetext>Committed r135763: &lt;http://trac.webkit.org/changeset/135763&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>158592</attachid>
            <date>2012-08-15 10:56:00 -0700</date>
            <delta_ts>2012-11-26 14:10:22 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-94124-20120815115329.patch</filename>
            <type>text/plain</type>
            <size>1456</size>
            <attacher name="Alex Christensen">alex.christensen</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDEyNTY4MikKKysrIFNvdXJjZS9XZWJDb3JlL0NoYW5n
ZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE1IEBACisyMDEyLTA4LTE1ICBBbGV4IENo
cmlzdGVuc2VuICA8YWxleC5jaHJpc3RlbnNlbkBmbGV4c2ltLmNvbT4KKworICAgICAgICBjbGlw
Ym9hcmR3aW4gY29tcGlsZSBlcnJvciBmb3Igd2luNjQKKyAgICAgICAgaHR0cHM6Ly9idWdzLndl
YmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTk0MTI0CisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9C
T0RZIChPT1BTISkuCisKKyAgICAgICAgRml4ZWQgYSBmZXcgY29tcGlsZSBlcnJvcnMgZm9yIFdp
bmRvd3MgeDY0IGJ5IHNwZWNpZnlpbmcgdGVtcGxhdGUgcGFyYW1ldGVycy4KKworICAgICAgICAq
IHBsYXRmb3JtL3dpbi9DbGlwYm9hcmRVdGlsaXRpZXNXaW4uY3BwOgorICAgICAgICAoV2ViQ29y
ZTo6c2V0RmlsZURlc2NyaXB0b3JEYXRhKToKKwogMjAxMi0wOC0xNSAgQW5uYSBDYXZlbmRlciAg
PGFubmFjY0BjaHJvbWl1bS5vcmc+CiAKICAgICAgICAgQWRkIHRoZSB0aW1lc3RhbXBPZmZzZXQg
YXR0cmlidXRlIHRvIFNvdXJjZUJ1ZmZlci4KSW5kZXg6IFNvdXJjZS9XZWJDb3JlL3BsYXRmb3Jt
L3dpbi9DbGlwYm9hcmRVdGlsaXRpZXNXaW4uY3BwCj09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFNvdXJjZS9XZWJD
b3JlL3BsYXRmb3JtL3dpbi9DbGlwYm9hcmRVdGlsaXRpZXNXaW4uY3BwCShyZXZpc2lvbiAxMjU2
ODEpCisrKyBTb3VyY2UvV2ViQ29yZS9wbGF0Zm9ybS93aW4vQ2xpcGJvYXJkVXRpbGl0aWVzV2lu
LmNwcAkod29ya2luZyBjb3B5KQpAQCAtNDMwLDcgKzQzMCw3IEBAIHZvaWQgc2V0RmlsZURlc2Ny
aXB0b3JEYXRhKElEYXRhT2JqZWN0KgogICAgIGZnZC0+ZmdkWzBdLmR3RmxhZ3MgPSBGRF9GSUxF
U0laRTsKICAgICBmZ2QtPmZnZFswXS5uRmlsZVNpemVMb3cgPSBzaXplOwogCi0gICAgaW50IG1h
eFNpemUgPSBzdGQ6Om1pbihwYXRobmFtZS5sZW5ndGgoKSwgV1RGX0FSUkFZX0xFTkdUSChmZ2Qt
PmZnZFswXS5jRmlsZU5hbWUpKTsKKyAgICBpbnQgbWF4U2l6ZSA9IHN0ZDo6bWluPGludD4ocGF0
aG5hbWUubGVuZ3RoKCksIFdURl9BUlJBWV9MRU5HVEgoZmdkLT5mZ2RbMF0uY0ZpbGVOYW1lKSk7
CiAgICAgQ29weU1lbW9yeShmZ2QtPmZnZFswXS5jRmlsZU5hbWUsIHBhdGhuYW1lLmNoYXJhY3Rl
cnNXaXRoTnVsbFRlcm1pbmF0aW9uKCksIG1heFNpemUgKiBzaXplb2YoVUNoYXIpKTsKICAgICBH
bG9iYWxVbmxvY2sobWVkaXVtLmhHbG9iYWwpOwogCg==
</data>
<flag name="review"
          id="168738"
          type_id="1"
          status="+"
          setter="bfulgham"
    />
    <flag name="commit-queue"
          id="168739"
          type_id="3"
          status="-"
          setter="bfulgham"
    />
          </attachment>
      

    </bug>

</bugzilla>