From 248335216aafdbafc075a09d5a78b53aa5dfc260 Mon Sep 17 00:00:00 2001 From: Roman Arutyunyan Date: Tue, 11 Jun 2013 22:12:11 +0400 Subject: [PATCH] added type cast to 64-bit reverse function --- ngx_rtmp.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ngx_rtmp.h b/ngx_rtmp.h index 2d575f2..7c96e8d 100644 --- a/ngx_rtmp.h +++ b/ngx_rtmp.h @@ -414,7 +414,8 @@ ngx_rtmp_r32(uint32_t n) static ngx_inline uint64_t ngx_rtmp_r64(uint64_t n) { - return (uint64_t) ngx_rtmp_r32(n) << 32 | ngx_rtmp_r32(n >> 32); + return (uint64_t) ngx_rtmp_r32((uint32_t) n) << 32 | + ngx_rtmp_r32((uint32_t) (n >> 32)); }