diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-02-11 03:13:25 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-02-11 03:13:25 +0000 |
commit | 7acc893dad48c008eaced05bfbedb0d17735bc47 (patch) | |
tree | 628f68f20c4335fa880242de568f7cfcfd2856c2 /codecs/gsm | |
parent | 3d8745a038830e8689bfd3c9849a5f1c39e37ae8 (diff) |
fix compiler warnings
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9468 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'codecs/gsm')
-rw-r--r-- | codecs/gsm/inc/private.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/codecs/gsm/inc/private.h b/codecs/gsm/inc/private.h index 24f0b42b2..7021030ac 100644 --- a/codecs/gsm/inc/private.h +++ b/codecs/gsm/inc/private.h @@ -149,17 +149,17 @@ static __inline__ short GSM_SUB(short a, short b) : (utmp = (ulongword)(a) + (ulongword)(b)) >= MAX_LONGWORD \ ? MAX_LONGWORD : utmp)) -static inline word GSM_ADD(a, b) +static inline word GSM_ADD(longword a, longword b) { register longword ltmp; - ltmp = (longword) (a) + (longword) (b); + ltmp = a + b; return (word)((ulongword) (ltmp - MIN_WORD) > MAX_WORD - MIN_WORD ? (ltmp > 0 ? MAX_WORD : MIN_WORD) : ltmp); }; -static inline word GSM_SUB(a, b) +static inline word GSM_SUB(longword a, longword b) { register longword ltmp; - ltmp = (longword) (a) - (longword) (b); + ltmp = a - b; return (word)(ltmp >= MAX_WORD ? MAX_WORD : ltmp <= MIN_WORD ? MIN_WORD : ltmp); }; |