From 98327cefe2a32d6487efaa01e3613b6414b921af Mon Sep 17 00:00:00 2001 From: Gilbok Lee Date: Mon, 11 Apr 2016 13:22:12 +0900 Subject: [PATCH] Fix build error on aarch64 Change-Id: I1b9cf5e0c411e0465332abd6305a3a38c436baca Signed-off-by: Gilbok Lee --- mm_attrs_private.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm_attrs_private.c b/mm_attrs_private.c index 58020bc..9c8df67 100644 --- a/mm_attrs_private.c +++ b/mm_attrs_private.c @@ -605,11 +605,11 @@ int mmf_attrs_init(MMHandleType h, mmf_attrs_construct_info_t *info, int count) case MMF_VALUE_TYPE_INT: assert(attrs->items[i].value.value.i_val == 0); mmf_value_set_int(&attrs->items[i].value, - (int)info[i].default_value); + (intptr_t)info[i].default_value); break; case MMF_VALUE_TYPE_DOUBLE: { - int i_val = (int)info[i].default_value; + int i_val = (intptr_t)info[i].default_value; double d_val = (double) i_val; assert(attrs->items[i].value.value.d_val == 0); mmf_value_set_double(&attrs->items[i].value, d_val); -- 2.7.4