From db5bac4c7a335c8dee7cc85ce8d8b7297ea6431f Mon Sep 17 00:00:00 2001 From: Jon Szymaniak Date: Fri, 4 Oct 2013 20:43:53 -0400 Subject: [PATCH] common: Fixed warnings the broke Windows build (with /WX) --- host/common/src/conversions.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/host/common/src/conversions.c b/host/common/src/conversions.c index 054d632e..a4891532 100644 --- a/host/common/src/conversions.c +++ b/host/common/src/conversions.c @@ -163,7 +163,7 @@ int str2version(const char *str, struct bladerf_version *version) if (errno != 0 || tmp > UINT16_MAX || end == start || *end != '.') { return -1; } - version->major = tmp; + version->major = (uint16_t)tmp; /* Minor version */ if (end[0] == '\0' || end[1] == '\0') { @@ -175,7 +175,7 @@ int str2version(const char *str, struct bladerf_version *version) if (errno != 0 || tmp > UINT16_MAX || end == start || *end != '.') { return -1; } - version->minor = tmp; + version->minor = (uint16_t)tmp; /* Patch version */ if (end[0] == '\0' || end[1] == '\0') { @@ -188,7 +188,7 @@ int str2version(const char *str, struct bladerf_version *version) (*end != '-' && *end != '\0')) { return -1; } - version->patch = tmp; + version->patch = (uint16_t)tmp; version->describe = str;