diff options
author | ionescu007 <aionescu+git@gmail.com> | 2016-08-30 00:44:21 +0300 |
---|---|---|
committer | ionescu007 <aionescu+git@gmail.com> | 2016-08-30 00:44:21 +0300 |
commit | d9177eedf1993573e06f36beb41455ac36a76d42 (patch) | |
tree | bb11c409f0450f1dd1b38b4cf62904b883c4b28f | |
parent | 00b06d061bd8c60e99e1b4f52c95e918ef2181b9 (diff) |
Fix sign extension bug.
-rw-r--r-- | shvvp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -160,7 +160,7 @@ ShvVpUnloadCallback ( // If SimpleVisor is disabled for some reason, CPUID won't return anything // so don't free any memory. It will unfortunately end up leaked. // - vpData = (PSHV_VP_DATA)((UINT64)cpuInfo[0] << 32 | cpuInfo[1]); + vpData = (PSHV_VP_DATA)((UINT64)cpuInfo[0] << 32 | (UINT32)cpuInfo[1]); if (vpData != NULL) { ShvOsFreeContiguousAlignedMemory(vpData); |