diff options
author | Haojian Zhuang <haojian.zhuang@linaro.org> | 2017-06-08 09:54:46 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-08 09:54:46 +0800 |
commit | 2b1d60f6b9d99bb42b5b8ccb8d8aa14772074b8f (patch) | |
tree | 1f417bd1b12d6a8ebf50fa3bb676ff26554ffef8 | |
parent | f5b04f61de798b80dbe6bda567b0a4385beae2a1 (diff) | |
parent | 21b5383e4b02b493fe1c5c94a614f6cfeea582ef (diff) | |
download | OpenPlatformPkg-2b1d60f6b9d99bb42b5b8ccb8d8aa14772074b8f.tar.gz |
Merge pull request #40 from hzhuang1/fix_alpha
HiKeyFastboot: fix calculation of IS_ALPHA
-rw-r--r-- | Platforms/Hisilicon/HiKey/HiKeyFastbootDxe/HiKeyFastboot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Platforms/Hisilicon/HiKey/HiKeyFastbootDxe/HiKeyFastboot.c b/Platforms/Hisilicon/HiKey/HiKeyFastbootDxe/HiKeyFastboot.c index 01df6ab..dd99927 100644 --- a/Platforms/Hisilicon/HiKey/HiKeyFastbootDxe/HiKeyFastboot.c +++ b/Platforms/Hisilicon/HiKey/HiKeyFastbootDxe/HiKeyFastboot.c @@ -43,7 +43,7 @@ #define PARTITION_NAME_MAX_LENGTH 72/2
#define IS_ALPHA(Char) (((Char) <= L'z' && (Char) >= L'a') || \
- ((Char) <= L'Z' && (Char) >= L'Z'))
+ ((Char) <= L'Z' && (Char) >= L'A'))
#define IS_HEXCHAR(Char) (((Char) <= L'9' && (Char) >= L'0') || \
IS_ALPHA(Char))
|