summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/CommonDataClass/CommonClass.py
diff options
context:
space:
mode:
authorSami Mujawar <sami.mujawar@arm.com>2019-07-09 16:50:42 +0100
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2020-03-29 16:53:35 +0000
commit8b2ac43bd8398c3e9559696de3f44ffaf455006e (patch)
tree99831be8214530d0046a8302f0ef75f552f689a1 /BaseTools/Source/Python/CommonDataClass/CommonClass.py
parenteffddeea3978d0fe5b85a310de73e0ea1625a931 (diff)
downloadedk2-8b2ac43bd8398c3e9559696de3f44ffaf455006e.tar.gz
edk2-8b2ac43bd8398c3e9559696de3f44ffaf455006e.tar.bz2
edk2-8b2ac43bd8398c3e9559696de3f44ffaf455006e.zip
DynamicTablesPkg: Fix IORT node length assignment
The VS2017 compiler reports 'warning C4267: 'return': conversion from 'size_t' to 'UINT32', possible loss of data' for a number of functions that compute the IORT node length. Similarly, it reports warnings for IORT node length field assignments as the length field is 16-bit wide. This patch adds type casts at appropriate places and also implements validations to ensure that the max width of the respective fields is not exceeded. This patch also fixes a typo in one of the local variable names. Signed-off-by: Sami Mujawar <sami.mujawar@arm.com> Reviewed-by: Alexei Fedorov <Alexei.Fedorov@arm.com>
Diffstat (limited to 'BaseTools/Source/Python/CommonDataClass/CommonClass.py')
0 files changed, 0 insertions, 0 deletions