diff options
author | zeliard <spacesun@naver.com> | 2015-04-27 15:51:31 +0900 |
---|---|---|
committer | zeliard <spacesun@naver.com> | 2015-04-27 15:51:31 +0900 |
commit | 28d051d9baf49382158f2ced7d9b2f11b6d8f608 (patch) | |
tree | e615e42ac210e24a9a608526ba58b607a9a6ba20 /src | |
parent | 8ff24593f8fd6d1d1c8824d28da48d31fbb60ff1 (diff) |
remove type casting on gpr_time_to_millis
Diffstat (limited to 'src')
-rw-r--r-- | src/core/support/time.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/support/time.c b/src/core/support/time.c index 60a3c23422..7dbf95059f 100644 --- a/src/core/support/time.c +++ b/src/core/support/time.c @@ -245,7 +245,7 @@ gpr_int32 gpr_time_to_millis(gpr_timespec t) { care?) */ return -2147483647; } else { - return (gpr_int32)t.tv_sec * GPR_MS_PER_SEC + (gpr_int32)t.tv_nsec / GPR_NS_PER_MS; + return t.tv_sec * GPR_MS_PER_SEC + t.tv_nsec / GPR_NS_PER_MS; } } |