Skip to content

Commit

Permalink
Fix xcode compilation.
Browse files Browse the repository at this point in the history
  • Loading branch information
jief666 committed Jan 2, 2024
1 parent c9821d5 commit 4e0111c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Library/OcCryptoLib/X64/Sha512Avx.nasm
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ BITS 64
extern ASM_PFX(SHA512_K)
extern ASM_PFX(mIsAccelEnabled)

section RODATA_SECTION_NAME
section .rodata
align 16
; Mask for byte-swapping a couple of qwords in an XMM register using (v)pshufb.
XMM_QWORD_BSWAP:
Expand Down
2 changes: 1 addition & 1 deletion Platform/OpenLinuxBoot/LoaderEntry.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ GetLoaderEntryLine (
do {
Ch = Content[*Pos];

if (!((Ch == '\0') || (Ch == '\t') || (Ch == '\n') || ((Ch >= 20) && (Ch < 128)))) {
if (!((Ch == '\0') || (Ch == '\t') || (Ch == '\n') || ((Ch >= 20) /*&& (Ch < 128)*/))) { // (Ch < 128) is always true because char is a 8 bits signed integer
DEBUG ((DEBUG_WARN, "LNX: Invalid char 0x%x in %s\n", Ch, FileName));
return EFI_INVALID_PARAMETER;
}
Expand Down

0 comments on commit 4e0111c

Please sign in to comment.