Changeset 1e1b047bf8bca4cc98485314028143b8cb7a22fe

Show
Ignore:
Timestamp:
10/15/10 22:23:26 (4 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1287181406 +0000
git-parent:

[0f20f5cc5ae68f70e2abed2eed3c911b7ee3110d]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1287181406 +0000
Message:

evidence that I can't write simple code, just complicated code (if that)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/noit_http.c

    r0f20f5c r1e1b047  
    6363      for(i = 1; i < 3; i++) { 
    6464        if(c[i] >= '0' && c[i] <= '9') ord = (ord << 4) | (c[i] - '0'); 
    65         else if (c[i] >= 'a' && c[i] <= 'f') ord = (ord << 4) | (c[i] - 'a'); 
    66         else if (c[i] >= 'A' && c[i] <= 'F') ord = (ord << 4) | (c[i] - 'A'); 
     65        else if (c[i] >= 'a' && c[i] <= 'f') ord = (ord << 4) | (c[i] - 'a' + 0xa); 
     66        else if (c[i] >= 'A' && c[i] <= 'F') ord = (ord << 4) | (c[i] - 'A' + 0xa); 
    6767        else break; 
    6868      }