diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2012-06-05 22:46:16 +0200 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2012-06-05 22:53:21 +0200 |
commit | de6f96229b96fd08a6fe331638e3a98425778b45 (patch) | |
tree | 4f5e15022251cd98801a2af10eddbaba89b17d98 /apps/talk.c | |
parent | 299ce2294e3efb8700ab6eca2bd099fd089073d7 (diff) | |
download | rockbox-de6f96229b96fd08a6fe331638e3a98425778b45.tar.gz rockbox-de6f96229b96fd08a6fe331638e3a98425778b45.zip |
Add comment to clarify calculation.
Change-Id: Ie0eaa2bb1c672c974246b3e97b5d5f3b9e1f9925
Diffstat (limited to 'apps/talk.c')
-rw-r--r-- | apps/talk.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/talk.c b/apps/talk.c index 675cfa0966..b94dcf18ee 100644 --- a/apps/talk.c +++ b/apps/talk.c | |||
@@ -194,7 +194,9 @@ static unsigned char* get_clip(long id, long* p_size) | |||
194 | unsigned char* clipbuf; | 194 | unsigned char* clipbuf; |
195 | 195 | ||
196 | if (id > VOICEONLY_DELIMITER) | 196 | if (id > VOICEONLY_DELIMITER) |
197 | { /* voice-only entries use the second part of the table */ | 197 | { /* voice-only entries use the second part of the table. |
198 | The first string comes after VOICEONLY_DELIMITER so we need to | ||
199 | substract VOICEONLY_DELIMITER + 1 */ | ||
198 | id -= VOICEONLY_DELIMITER + 1; | 200 | id -= VOICEONLY_DELIMITER + 1; |
199 | if (id >= p_voicefile->id2_max) | 201 | if (id >= p_voicefile->id2_max) |
200 | return NULL; /* must be newer than we have */ | 202 | return NULL; /* must be newer than we have */ |