summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/talk.c2
-rw-r--r--apps/voice_thread.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/apps/talk.c b/apps/talk.c
index ab9ca8c..13f323f4 100644
--- a/apps/talk.c
+++ b/apps/talk.c
@@ -312,6 +312,7 @@ static int id2index(int id)
return index;
}
+#ifndef TALK_PROGRESSIVE_LOAD
static int index2id(int index)
{
int id = index;
@@ -329,6 +330,7 @@ static int index2id(int index)
return id;
}
+#endif
static int free_oldest_clip(void)
{
diff --git a/apps/voice_thread.c b/apps/voice_thread.c
index dcb7eef..d8a7b27 100644
--- a/apps/voice_thread.c
+++ b/apps/voice_thread.c
@@ -458,7 +458,7 @@ static enum voice_state voice_decode(struct voice_thread_data *td)
else
{
if (td->vi.size > VOICE_MAX_ENCODED_FRAME_SIZE
- && td->bits.charPtr > (td->vi.size - VOICE_MAX_ENCODED_FRAME_SIZE)
+ && td->bits.charPtr > (int)(td->vi.size - VOICE_MAX_ENCODED_FRAME_SIZE)
&& td->vi.get_more != NULL)
{
/* request more data _before_ running out of data (requesting