<?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>80926</bug_id>
          
          <creation_ts>2012-03-12 19:13:25 -0700</creation_ts>
          <short_desc>Fix some compiler warnings (miscellaneous)</short_desc>
          <delta_ts>2012-03-14 10:35:43 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>JavaScriptCore</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</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>1</everconfirmed>
          <reporter name="George Staikos">staikos</reporter>
          <assigned_to name="George Staikos">staikos</assigned_to>
          <cc>ap</cc>
    
    <cc>barraclough</cc>
    
    <cc>fpizlo</cc>
    
    <cc>ggaren</cc>
    
    <cc>japhet</cc>
    
    <cc>manyoso</cc>
    
    <cc>mhahnenberg</cc>
    
    <cc>webkit.review.bot</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>576901</commentid>
    <comment_count>0</comment_count>
      <attachid>131491</attachid>
    <who name="George Staikos">staikos</who>
    <bug_when>2012-03-12 19:13:25 -0700</bug_when>
    <thetext>Created attachment 131491
Fix signed/unsigned mismatches

+++ This bug was initially created as a clone of Bug #80790 +++

Patches to come - mostly signed/unsigned changes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>577556</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2012-03-13 11:04:58 -0700</bug_when>
    <thetext>CC&apos;ing some JSC folks in case these warnings point to something more interesting than just a need to cast.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>577557</commentid>
    <comment_count>2</comment_count>
      <attachid>131491</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2012-03-13 11:05:36 -0700</bug_when>
    <thetext>Comment on attachment 131491
Fix signed/unsigned mismatches

As mentioned in original bug, please use &quot;int&quot; instead of &quot;signed&quot;, and please use C++ casts.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>577571</commentid>
    <comment_count>3</comment_count>
      <attachid>131674</attachid>
    <who name="George Staikos">staikos</who>
    <bug_when>2012-03-13 11:16:07 -0700</bug_when>
    <thetext>Created attachment 131674
Don&apos;t define the static if it isn&apos;t used (ie: SA_RESTART defined)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>577586</commentid>
    <comment_count>4</comment_count>
    <who name="George Staikos">staikos</who>
    <bug_when>2012-03-13 11:22:10 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; (From update of attachment 131491 [details])
&gt; As mentioned in original bug, please use &quot;int&quot; instead of &quot;signed&quot;, and please use C++ casts.

http://www.cplusplus.com/doc/tutorial/typecasting/

Those are C++ casts.  I can change to int.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>577590</commentid>
    <comment_count>5</comment_count>
      <attachid>131678</attachid>
    <who name="George Staikos">staikos</who>
    <bug_when>2012-03-13 11:23:51 -0700</bug_when>
    <thetext>Created attachment 131678
Fix signed/unsigned mismatches</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>577625</commentid>
    <comment_count>6</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2012-03-13 11:57:55 -0700</bug_when>
    <thetext>&gt; Those are C++ casts.  I can change to int.

It&apos;s a long-standing and agreed upon rule in WebKit, although it doesn&apos;t seem to be mentioned in &lt;http://www.webkit.org/coding/coding-style.html&gt;. Perhaps because it&apos;s more of safe coding rule than a style one.

There is no doubt that C-style casts are still supported in C++, but that doesn&apos;t make them welcome in WebKit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>577627</commentid>
    <comment_count>7</comment_count>
      <attachid>131678</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2012-03-13 11:58:17 -0700</bug_when>
    <thetext>Comment on attachment 131678
Fix signed/unsigned mismatches

Still wrong casts.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>577668</commentid>
    <comment_count>8</comment_count>
    <who name="George Staikos">staikos</who>
    <bug_when>2012-03-13 12:31:13 -0700</bug_when>
    <thetext>(In reply to comment #7)
&gt; (From update of attachment 131678 [details])
&gt; Still wrong casts.

Please enlighten me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>577682</commentid>
    <comment_count>9</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2012-03-13 12:43:38 -0700</bug_when>
    <thetext>&gt; Please enlighten me.

Does comment 6 not help?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>577712</commentid>
    <comment_count>10</comment_count>
    <who name="George Staikos">staikos</who>
    <bug_when>2012-03-13 13:07:42 -0700</bug_when>
    <thetext>(In reply to comment #9)
&gt; &gt; Please enlighten me.
&gt; 
&gt; Does comment 6 not help?

Those are not C-style casts.  They&apos;re C++-style.  If you want a different C++ cast, please select:

1) static_cast&lt;&gt;
2) reinterpret_cast&lt;&gt;
3) dynamic_cast&lt;&gt; (of course it will fail, as will const_cast&lt;&gt;)

Really, they&apos;re c++ casts.  They also pass the style checker and the style guideline referenced.
http://www.cplusplus.com/doc/tutorial/typecasting/ explains.  I also think it looks a LOT nicer than an unneeded big long string of text.

Saying &quot;use C++ cast&quot; is meaningless since it is a C++ cast - and that&apos;s my point.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>577736</commentid>
    <comment_count>11</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2012-03-13 13:23:43 -0700</bug_when>
    <thetext>If you want WebKit coding style to change, please e-mail webkit-dev. If you can suggest a more clear description for C++ style casts to use in future reviews, please do so.

I think that you understood my comment from the first time, and are just trying to be difficult.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>577751</commentid>
    <comment_count>12</comment_count>
    <who name="George Staikos">staikos</who>
    <bug_when>2012-03-13 13:31:07 -0700</bug_when>
    <thetext>(In reply to comment #11)
&gt; If you want WebKit coding style to change, please e-mail webkit-dev. If you can suggest a more clear description for C++ style casts to use in future reviews, please do so.
&gt; 
&gt; I think that you understood my comment from the first time, and are just trying to be difficult.

No, I want you to explain it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>577826</commentid>
    <comment_count>13</comment_count>
      <attachid>131678</attachid>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2012-03-13 14:41:17 -0700</bug_when>
    <thetext>Comment on attachment 131678
Fix signed/unsigned mismatches

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

I agree with you that it is really enjoyable to have philosophical discussions about which of the various styles of casting to use.  There are many of them and their differences are fabulous.

However, what&apos;s important for us is that we stick to one style.  We use the foo_cast&lt;bar&gt;(baz) style, and we generally stay away from bar(baz) or (bar)baz.  That&apos;s just our convention.

&gt; Source/JavaScriptCore/assembler/AssemblerBufferWithConstantPool.h:218
&gt; +        if (isForced || 5 * unsigned(m_numConsts) &gt; 3 * maxPoolSize / sizeof(uint32_t))

This should be static_cast&lt;m_numConsts&gt;

&gt; Source/JavaScriptCore/assembler/MacroAssemblerARM.h:463
&gt; +            ARMWord tmp = (right.m_value == int(0x80000000)) ? ARMAssembler::INVALID_IMM : m_assembler.getOp2(-right.m_value);

This should be static_cast&lt;int&gt;(0x80000000).

&gt; Source/JavaScriptCore/parser/Lexer.cpp:632
&gt; +    ASSERT(unsigned(c) &lt;= USHRT_MAX);

This should be static_cast&lt;unsigned&gt;(c)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>577828</commentid>
    <comment_count>14</comment_count>
      <attachid>131678</attachid>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2012-03-13 14:42:11 -0700</bug_when>
    <thetext>Comment on attachment 131678
Fix signed/unsigned mismatches

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

&gt;&gt; Source/JavaScriptCore/assembler/AssemblerBufferWithConstantPool.h:218
&gt;&gt; +        if (isForced || 5 * unsigned(m_numConsts) &gt; 3 * maxPoolSize / sizeof(uint32_t))
&gt; 
&gt; This should be static_cast&lt;m_numConsts&gt;

Correction, shjould be static_cast&lt;unsigned&gt;(m_numConstants)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>577834</commentid>
    <comment_count>15</comment_count>
    <who name="George Staikos">staikos</who>
    <bug_when>2012-03-13 14:52:04 -0700</bug_when>
    <thetext>(In reply to comment #13)
&gt; (From update of attachment 131678 [details])
&gt; View in context: https://bugs.webkit.org/attachment.cgi?id=131678&amp;action=review
&gt; 
&gt; I agree with you that it is really enjoyable to have philosophical discussions about which of the various styles of casting to use.  There are many of them and their differences are fabulous.
&gt; 
&gt; However, what&apos;s important for us is that we stick to one style.  We use the foo_cast&lt;bar&gt;(baz) style, and we generally stay away from bar(baz) or (bar)baz.  That&apos;s just our convention.
&gt; 
&gt; &gt; Source/JavaScriptCore/assembler/AssemblerBufferWithConstantPool.h:218
&gt; &gt; +        if (isForced || 5 * unsigned(m_numConsts) &gt; 3 * maxPoolSize / sizeof(uint32_t))
&gt; 
&gt; This should be static_cast&lt;m_numConsts&gt;

So in reality this has nothing to do with C++, but more &quot;write it my way&quot;.  That&apos;s fine.  Let&apos;s just call it such.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>577835</commentid>
    <comment_count>16</comment_count>
      <attachid>131674</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-03-13 14:52:49 -0700</bug_when>
    <thetext>Comment on attachment 131674
Don&apos;t define the static if it isn&apos;t used (ie: SA_RESTART defined)

Clearing flags on attachment: 131674

Committed r110617: &lt;http://trac.webkit.org/changeset/110617&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>577836</commentid>
    <comment_count>17</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-03-13 14:52:55 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>577840</commentid>
    <comment_count>18</comment_count>
    <who name="Filip Pizlo">fpizlo</who>
    <bug_when>2012-03-13 14:58:08 -0700</bug_when>
    <thetext>(In reply to comment #15)
&gt; (In reply to comment #13)
&gt; &gt; (From update of attachment 131678 [details] [details])
&gt; &gt; View in context: https://bugs.webkit.org/attachment.cgi?id=131678&amp;action=review
&gt; &gt; 
&gt; &gt; I agree with you that it is really enjoyable to have philosophical discussions about which of the various styles of casting to use.  There are many of them and their differences are fabulous.
&gt; &gt; 
&gt; &gt; However, what&apos;s important for us is that we stick to one style.  We use the foo_cast&lt;bar&gt;(baz) style, and we generally stay away from bar(baz) or (bar)baz.  That&apos;s just our convention.
&gt; &gt; 
&gt; &gt; &gt; Source/JavaScriptCore/assembler/AssemblerBufferWithConstantPool.h:218
&gt; &gt; &gt; +        if (isForced || 5 * unsigned(m_numConsts) &gt; 3 * maxPoolSize / sizeof(uint32_t))
&gt; &gt; 
&gt; &gt; This should be static_cast&lt;m_numConsts&gt;
&gt; 
&gt; So in reality this has nothing to do with C++, but more &quot;write it my way&quot;.  That&apos;s fine.  Let&apos;s just call it such.

To be clear, it&apos;s about consistency.  It&apos;s better to have all of the code do it one way.  It may be the wrong way; who knows.  Doesn&apos;t really matter, since the semantics differences are minor.  I prefer (bar)baz, you prefer bar(baz), but the code already uses foo_cast&lt;bar&gt;(baz) everywhere so it&apos;s better if we stick to it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>578248</commentid>
    <comment_count>19</comment_count>
    <who name="Nikolas Zimmermann">zimmermann</who>
    <bug_when>2012-03-14 01:51:43 -0700</bug_when>
    <thetext>(In reply to comment #15)
&gt; So in reality this has nothing to do with C++, but more &quot;write it my way&quot;.  That&apos;s fine.  Let&apos;s just call it such.

Indeed, it&apos;s really just our style. I&apos;ve been yelled at the past in my patches, to stop using unsigned(foo) and use static_cast&lt;unsigned&gt;(foo) instead, always with the argument that C style casts should be avoided.
I was under the impression that (unsigned) foo and unsigned(foo) are C++ style casts, and it almost loos like Alexey is/was under the same impression.

We should nail this down and force static_cast&lt;unsigned&gt;() usage in the stye guide, to avoid confusion.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>578401</commentid>
    <comment_count>20</comment_count>
    <who name="Adam Treat">manyoso</who>
    <bug_when>2012-03-14 08:13:33 -0700</bug_when>
    <thetext>(In reply to comment #19)
&gt; (In reply to comment #15)
&gt; &gt; So in reality this has nothing to do with C++, but more &quot;write it my way&quot;.  That&apos;s fine.  Let&apos;s just call it such.
&gt; 
&gt; Indeed, it&apos;s really just our style. I&apos;ve been yelled at the past in my patches, to stop using unsigned(foo) and use static_cast&lt;unsigned&gt;(foo) instead, always with the argument that C style casts should be avoided.
&gt; I was under the impression that (unsigned) foo and unsigned(foo) are C++ style casts, and it almost loos like Alexey is/was under the same impression.
&gt; 
&gt; We should nail this down and force static_cast&lt;unsigned&gt;() usage in the stye guide, to avoid confusion.

Or quit trying to enforce unwritten style guide rules.  I see *no* reason that the style guide should be updated to include this unwritten and informal &apos;style guideline&apos;.

And arguing consistency... does this really make the code more readable/hackable?  Not at all in my opinion.  And that is what consistency is for -&gt; to make the code more readable/hackable/followable.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>578479</commentid>
    <comment_count>21</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2012-03-14 09:21:49 -0700</bug_when>
    <thetext>It&apos;s incorrect that this is just for consistency. C-style casts (whether you write them using old C syntax &quot;(type)variable&quot; or constructor-style syntax &quot;type(variable)&quot; that you like to call C++ despite it having the same semantics) are more powerful and thus error-prone.

Again, if you want to change WebKit coding style, please go to webkit-dev.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>578542</commentid>
    <comment_count>22</comment_count>
    <who name="Adam Treat">manyoso</who>
    <bug_when>2012-03-14 10:35:43 -0700</bug_when>
    <thetext>(In reply to comment #21)
&gt; It&apos;s incorrect that this is just for consistency. C-style casts (whether you write them using old C syntax &quot;(type)variable&quot; or constructor-style syntax &quot;type(variable)&quot; that you like to call C++ despite it having the same semantics) are more powerful and thus error-prone.
&gt; 
&gt; Again, if you want to change WebKit coding style, please go to webkit-dev.

But I&apos;m not trying to change webkit coding style: http://www.webkit.org/coding/coding-style.html

If this is not for consistency, then please tell me how the casts in this patch were error prone.  What future change do you think was likely to have an error because of this usage.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>131491</attachid>
            <date>2012-03-12 19:13:25 -0700</date>
            <delta_ts>2012-03-13 11:23:51 -0700</delta_ts>
            <desc>Fix signed/unsigned mismatches</desc>
            <filename>80790_1.patch</filename>
            <type>text/plain</type>
            <size>2775</size>
            <attacher name="George Staikos">staikos</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9KYXZhU2NyaXB0Q29yZS9DaGFuZ2VMb2cKPT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gU291
cmNlL0phdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwkocmV2aXNpb24gMTEwMzk1KQorKysgU291cmNl
L0phdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE3IEBA
CisyMDEyLTAzLTExICBHZW9yZ2UgU3RhaWtvcyAgPHN0YWlrb3NAd2Via2l0Lm9yZz4KKworICAg
ICAgICBGaXggc2lnbmVkL3Vuc2lnbmVkIG1pc21hdGNoIGNv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N0YXRpY19jYXN0PFVDaGFyPihjKSk7CiB9CiAK
</data>
<flag name="commit-queue"
          id="134825"
          type_id="3"
          status="-"
          setter="ap"
    />
          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>131674</attachid>
            <date>2012-03-13 11:16:07 -0700</date>
            <delta_ts>2012-03-13 14:52:49 -0700</delta_ts>
            <desc>Don&apos;t define the static if it isn&apos;t used (ie: SA_RESTART defined)</desc>
            <filename>80926_2.patch</filename>
            <type>text/plain</type>
            <size>1315</size>
            <attacher name="George Staikos">staikos</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9KYXZhU2NyaXB0Q29yZS9DaGFuZ2VMb2cKPT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gU291
cmNlL0phdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwkocmV2aXNpb24gMTEwNTgxKQorKysgU291cmNl
L0phdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE0IEBA
CisyMDEyLTAzLTEzICBHZW9yZ2UgU3RhaWtvcyAgPHN0YWlrb3NAd2Via2l0Lm9yZz4KKworICAg
ICAgICBUaGUgY2FsbGJhY2sgaXMgb25seSB1c2VkIGlmIFNBX1JFU1RBUlQgaXMgZGVmaW5lZC4g
IENvbXBpbGUgaXQgb3V0CisgICAgICAgIG90aGVyd2lzZSB0byBhdm9pZCBhIHdhcm5pbmcuCisg
ICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD04MDkyNgorCisg
ICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAgICogaGVhcC9NYWNo
aW5lU3RhY2tNYXJrZXIuY3BwOgorICAgICAgICAoSlNDKToKKwogMjAxMi0wMy0xMiAgSG9qb25n
IEhhbiAgPGhvam9uZy5oYW5Ac2Ftc3VuZy5jb20+CiAKICAgICAgICAgRml4IHRlc3QgY2FzZXMg
Zm9yIFJlZ0V4cCBtdWx0aWxpbmUKSW5kZXg6IFNvdXJjZS9KYXZhU2NyaXB0Q29yZS9oZWFwL01h
Y2hpbmVTdGFja01hcmtlci5jcHAKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gU291cmNlL0phdmFTY3JpcHRDb3Jl
L2hlYXAvTWFjaGluZVN0YWNrTWFya2VyLmNwcAkocmV2aXNpb24gMTEwNTc5KQorKysgU291cmNl
L0phdmFTY3JpcHRDb3JlL2hlYXAvTWFjaGluZVN0YWNrTWFya2VyLmNwcAkod29ya2luZyBjb3B5
KQpAQCAtOTYsNiArOTYsNyBAQCB0eXBlZGVmIEhBTkRMRSBQbGF0Zm9ybVRocmVhZDsKIHR5cGVk
ZWYgcHRocmVhZF90IFBsYXRmb3JtVGhyZWFkOwogc3RhdGljIGNvbnN0IGludCBTaWdUaHJlYWRT
dXNwZW5kUmVzdW1lID0gU0lHVVNSMjsKIAorI2lmIGRlZmluZWQoU0FfUkVTVEFSVCkKIHN0YXRp
YyB2b2lkIHB0aHJlYWRTaWduYWxIYW5kbGVyU3VzcGVuZFJlc3VtZShpbnQgc2lnbm8pCiB7CiAg
ICAgc2lnc2V0X3Qgc2lnbmFsU2V0OwpAQCAtMTA0LDYgKzEwNSw3IEBAIHN0YXRpYyB2b2lkIHB0
aHJlYWRTaWduYWxIYW5kbGVyU3VzcGVuZFIKICAgICBzaWdzdXNwZW5kKCZzaWduYWxTZXQpOwog
fQogI2VuZGlmCisjZW5kaWYKIAogY2xhc3MgTWFjaGluZVRocmVhZHM6OlRocmVhZCB7CiBwdWJs
aWM6Cg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>131678</attachid>
            <date>2012-03-13 11:23:51 -0700</date>
            <delta_ts>2012-03-13 14:42:11 -0700</delta_ts>
            <desc>Fix signed/unsigned mismatches</desc>
            <filename>80790_1.patch</filename>
            <type>text/plain</type>
            <size>2772</size>
            <attacher name="George Staikos">staikos</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9KYXZhU2NyaXB0Q29yZS9DaGFuZ2VMb2cKPT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gU291
cmNlL0phdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwkocmV2aXNpb24gMTEwMzk1KQorKysgU291cmNl
L0phdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE3IEBA
CisyMDEyLTAzLTExICBHZW9yZ2UgU3RhaWtvcyAgPHN0YWlrb3NAd2Via2l0Lm9yZz4KKworICAg
ICAgICBGaXggc2lnbmVkL3Vuc2lnbmVkIG1pc21hdGNoIGNvbXBpbGVyIHdhcm5pbmdzLgorICAg
ICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9ODA5MjYKKworICAg
ICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAgICAgICAqIGFzc2VtYmxlci9B
c3NlbWJsZXJCdWZmZXJXaXRoQ29uc3RhbnRQb29sLmg6CisgICAgICAgIChKU0M6OkFzc2VtYmxl
ckJ1ZmZlcldpdGhDb25zdGFudFBvb2w6OmZsdXNoV2l0aG91dEJhcnJpZXIpOgorICAgICAgICAq
IGFzc2VtYmxlci9NYWNyb0Fzc2VtYmxlckFSTS5oOgorICAgICAgICAoSlNDOjpNYWNyb0Fzc2Vt
YmxlckFSTTo6YnJhbmNoMzIpOgorICAgICAgICAqIHBhcnNlci9MZXhlci5jcHA6CisgICAgICAg
IChKU0M6Ojo6cmVjb3JkMTYpOgorCiAyMDEyLTAzLTEwICBGaWxpcCBQaX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YVNjcmlw
dENvcmUvcGFyc2VyL0xleGVyLmNwcAo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvSmF2YVNjcmlwdENv
cmUvcGFyc2VyL0xleGVyLmNwcAkocmV2aXNpb24gMTEwMzkzKQorKysgU291cmNlL0phdmFTY3Jp
cHRDb3JlL3BhcnNlci9MZXhlci5jcHAJKHdvcmtpbmcgY29weSkKQEAgLTYyOSw3ICs2MjksNyBA
QCB0ZW1wbGF0ZSA8dHlwZW5hbWUgVD4KIGlubGluZSB2b2lkIExleGVyPFQ+OjpyZWNvcmQxNihp
bnQgYykKIHsKICAgICBBU1NFUlQoYyA+PSAwKTsKLSAgICBBU1NFUlQoYyA8PSBVU0hSVF9NQVgp
OworICAgIEFTU0VSVCh1bnNpZ25lZChjKSA8PSBVU0hSVF9NQVgpOwogICAgIG1fYnVmZmVyMTYu
YXBwZW5kKHN0YXRpY19jYXN0PFVDaGFyPihjKSk7CiB9CiAK
</data>
<flag name="review"
          id="135069"
          type_id="1"
          status="-"
          setter="fpizlo"
    />
    <flag name="commit-queue"
          id="135070"
          type_id="3"
          status="-"
          setter="ap"
    />
          </attachment>
      

    </bug>

</bugzilla>