]> git.proxmox.com Git - mirror_edk2.git/commit - MdeModulePkg/Universal/RegularExpressionDxe/Oniguruma/regparse.c
MdeModulePkg: Fix VS2015 warning C4311 & C4312 in RegularExpressionDxe
authorLiming Gao <liming.gao@intel.com>
Fri, 4 Dec 2015 03:15:08 +0000 (03:15 +0000)
committerlgao4 <lgao4@Edk2>
Fri, 4 Dec 2015 03:15:08 +0000 (03:15 +0000)
commit4d454c54d1dbd92745b825d3156d8b4ced949461
treee23fd9cec1f04851b607e6af66e6feee15dd7b26
parentd76946e328c51ab236de5d34edec774b0b01e4f5
MdeModulePkg: Fix VS2015 warning C4311 & C4312 in RegularExpressionDxe

warning C4311: pointer truncation from 'void *' to 'unsigned long'
warning C4312: conversion from 'unsigned long' to 'void *' of greater size
Update code to convert type to UINTN first, then convert it to other type.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Samer El-Haj-Mahmoud <samer.el-haj-mahmoud@hpe.com>
Acked-by: Michael Kinney <michael.d.kinney@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19114 6f19259b-4bc3-4df7-8a09-765794883524
MdeModulePkg/Universal/RegularExpressionDxe/Oniguruma/enc/unicode.c
MdeModulePkg/Universal/RegularExpressionDxe/Oniguruma/regexec.c
MdeModulePkg/Universal/RegularExpressionDxe/Oniguruma/regint.h
MdeModulePkg/Universal/RegularExpressionDxe/Oniguruma/regparse.c