<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -180,7 +180,7 @@ sub uint {
     my @bytes  = unpack 'C*', shift;
     my $length = @bytes;
     my $size   = syminfo-&gt;byte_size('int');
-    my $value  = ($bytes[0] &amp; 0x80) ? -1 : 0;
+    my $value  = 0;
 
     if($length &gt; $size) {
         $ERROR = &quot;length mismatch: $length &gt; $size&quot;;
@@ -188,6 +188,7 @@ sub uint {
     }
 
     $value = ($value &lt;&lt; 8) | $_ for(@bytes);
+    $value *= -1 if($bytes[3] &amp; 0x80);
 
     return $value;
 }</diff>
      <filename>lib/DOCSIS/ConfigFile/Decode.pm</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>580258448c38fb77ec54617b35412d9df6393695</id>
    </parent>
  </parents>
  <author>
    <name>Jan Henning Thorsen</name>
    <email>git@flodhest.net</email>
  </author>
  <url>http://github.com/jhthorsen/docsis-configfile/commit/1f3c6dbb15c848620b6f58ad21fc27ae1de3a8cb</url>
  <id>1f3c6dbb15c848620b6f58ad21fc27ae1de3a8cb</id>
  <committed-date>2009-11-08T07:48:12-08:00</committed-date>
  <authored-date>2009-11-08T07:48:12-08:00</authored-date>
  <message>fixed decode issue with uint</message>
  <tree>b0988211803701366734f26ecfce31e493fcfce1</tree>
  <committer>
    <name>Jan Henning Thorsen</name>
    <email>git@flodhest.net</email>
  </committer>
</commit>
