When compiling in x86_32|Debug mode and choosing not to link with standard
Windows libraries, the MSVC compiler will throw the error: gnu-efi.lib(print.obj) : error LNK2019: unresolved external symbol __allmul referenced in function _ValueToHex Adding an explicit cast on the array index, to ensure that is not larger than 32 bits, appears to fix the problem. NB: This patch also removes trailing whitespaces, but the only real change is on line 1253. Signed-off-by: Pete Batard <pbatard@users.sf.net> Signed-off-by: Nigel Croxon <nigel.croxon@hpe.com>
This commit is contained in:
parent
50b883773f
commit
38c57d52fb
@ -1250,7 +1250,8 @@ ValueToHex (
|
||||
p2 = Buffer;
|
||||
|
||||
while (v) {
|
||||
*(p1++) = Hex[v & 0xf];
|
||||
// Without the cast, the MSVC compiler may insert a reference to __allmull
|
||||
*(p1++) = Hex[(UINTN)(v & 0xf)];
|
||||
v = RShiftU64 (v, 4);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user