]> git.proxmox.com Git - mirror_edk2.git/commit - MdePkg/Library/BaseMemoryLib/CopyMem.c
MdePkg/BaseMemoryLib: Fix VS2015 build error
authorMichael Kinney <michael.d.kinney@intel.com>
Thu, 10 Nov 2016 02:31:38 +0000 (18:31 -0800)
committerMichael Kinney <michael.d.kinney@intel.com>
Thu, 17 Nov 2016 17:43:23 +0000 (09:43 -0800)
commit5ea2bad0d9ab6a2465195badd323313553baa61b
treeec583384129f6f71f2a0898a8ba1c6a39cf6aa25
parent2048ab4b3ec966183eb87d93d9cdab05fe9cc840
MdePkg/BaseMemoryLib: Fix VS2015 build error

https://bugzilla.tianocore.org/show_bug.cgi?id=237

Make the smallest change possible to workaround a VS2015
build error.  The change is to the loop that handles the
case where neither the source nor the destination are
64-bit or 32-bit aligned and the logic falls through to
a loop that performs the copy as bytes.  Only the loop
that copies bytes backwards needs to be updated to avoid
the VS2015 build error.

Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
MdePkg/Library/BaseMemoryLib/CopyMem.c