diff options
author | Francis Rowe <info@gluglug.org.uk> | 2015-01-11 00:13:03 +0000 |
---|---|---|
committer | Francis Rowe <info@gluglug.org.uk> | 2015-01-11 00:13:03 +0000 |
commit | 3403b8c4eee0640022f619504706a99a28dde1f5 (patch) | |
tree | c813430335ec336a823ec69a0b56fd8514bebd2d /resources/utilities | |
parent | f6da483213c5a9ad026c2740eeff120414492a40 (diff) | |
download | librebootfr-3403b8c4eee0640022f619504706a99a28dde1f5.tar.gz librebootfr-3403b8c4eee0640022f619504706a99a28dde1f5.zip |
ich9deblob/ich9gen: checksum word grab: shift, not multiply
Diffstat (limited to 'resources/utilities')
-rw-r--r-- | resources/utilities/ich9deblob/src/gbe/gbe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/utilities/ich9deblob/src/gbe/gbe.c b/resources/utilities/ich9deblob/src/gbe/gbe.c index e8faa51f..beb5e141 100644 --- a/resources/utilities/ich9deblob/src/gbe/gbe.c +++ b/resources/utilities/ich9deblob/src/gbe/gbe.c @@ -35,7 +35,7 @@ /* Read a 16-bit unsigned int from a supplied region buffer */ uint16_t gbeGetRegionWordFrom8kBuffer(int index, uint8_t* regionData) { - return *((uint16_t*)(regionData + (index * 2))); + return *((uint16_t*)(regionData + (index << 1))); } /* |