mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 12:16:00 +00:00
fix compiler warnings
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9468 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user