diff options
author | Emil Velikov <emil.l.velikov@gmail.com> | 2014-08-12 16:28:39 +0100 |
---|---|---|
committer | Emil Velikov <emil.l.velikov@gmail.com> | 2014-11-09 22:44:09 +0000 |
commit | 1576a17f9a67f4e238911b34bcabf0db1773b6c4 (patch) | |
tree | 02a9f8bb9b31103e112ca763c61a2819c1f6d9de /src | |
parent | 34bb2019d456f10094f450fdb879b6baafec5f7f (diff) |
core: silence MSVC compiler warning
The return type of wcore_attrib_list_length() is int32_t and at the same
time MSVC promotes the (int32_t) math at the return line to int64_t thus
causing a warning message. Explicitly cast it to make MSVC happy.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/waffle/core/wcore_attrib_list.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/waffle/core/wcore_attrib_list.c b/src/waffle/core/wcore_attrib_list.c index ba380b8..48d4b33 100644 --- a/src/waffle/core/wcore_attrib_list.c +++ b/src/waffle/core/wcore_attrib_list.c @@ -40,7 +40,7 @@ wcore_attrib_list_length(const int32_t attrib_list[]) while (*i != 0) i += 2; - return (i - attrib_list) / 2; + return (int32_t) (i - attrib_list) / 2; } bool |