From a86c6fa1a8cf10dac8b8d4f4849f455e562e38af Mon Sep 17 00:00:00 2001 From: merlokk <807634+merlokk@users.noreply.github.com> Date: Thu, 3 Jan 2019 21:00:07 +0200 Subject: [PATCH] get rid of math.h ) --- client/emv/tlv.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/client/emv/tlv.c b/client/emv/tlv.c index a41d98c95..013e9735a 100644 --- a/client/emv/tlv.c +++ b/client/emv/tlv.c @@ -25,7 +25,6 @@ #include #include #include -#include #define TLV_TAG_CLASS_MASK 0xc0 #define TLV_TAG_COMPLEX 0x20 @@ -565,7 +564,7 @@ bool tlv_get_int(const struct tlv *etlv, int *value) { for (int i = 0; i < etlv->len; i++) { - *value += etlv->value[i] * pow(0x100, i); + *value += etlv->value[i] * (1 << (i * 8)); } return true; }