Changeset 788 in openpam for trunk/lib


Ignore:
Timestamp:
Mar 12, 2014, 12:03:53 AM (7 years ago)
Author:
Dag-Erling Smørgrav
Message:

I must have been drunk when I wrote this.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/liboath/oath_uri_decode.c

    r758 r788  
    4040#include "openpam_ctype.h"
    4141
    42 #define unhex(ch) \
    43         ((ch >= '0' && ch <= '9') ? ch - '0' :  \
    44          (ch >= 'A' && ch <= 'F') ? ch - 'A' :  \
    45          (ch >= 'a' && ch <= 'F') ? ch - 'a' : 0)
     42#define unhex(ch)                                                       \
     43        ((ch >= '0' && ch <= '9') ? ch - '0' :                          \
     44         (ch >= 'A' && ch <= 'F') ? 0xa + ch - 'A' :                    \
     45         (ch >= 'a' && ch <= 'f') ? 0xa + ch - 'a' : 0)
    4646
    4747/*
Note: See TracChangeset for help on using the changeset viewer.