diff options
Diffstat (limited to 'apps/filetypes.c')
-rw-r--r-- | apps/filetypes.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/filetypes.c b/apps/filetypes.c index 09090c30d4..2788d3c151 100644 --- a/apps/filetypes.c +++ b/apps/filetypes.c | |||
@@ -209,8 +209,8 @@ int filetype_get_attr(const char* name) | |||
209 | strlen(exttypes[i].extension)], | 209 | strlen(exttypes[i].extension)], |
210 | exttypes[i].extension)) | 210 | exttypes[i].extension)) |
211 | { | 211 | { |
212 | return ((((unsigned int)exttypes[i].type - | 212 | return ((((unsigned long)exttypes[i].type - |
213 | (unsigned int)&filetypes[0]) / | 213 | (unsigned long)&filetypes[0]) / |
214 | sizeof(struct file_type)) << 8); | 214 | sizeof(struct file_type)) << 8); |
215 | } | 215 | } |
216 | } | 216 | } |
@@ -594,8 +594,8 @@ static char* string2icon(const char* str) | |||
594 | return NULL; | 594 | return NULL; |
595 | 595 | ||
596 | if ((sizeof(string_buffer) + | 596 | if ((sizeof(string_buffer) + |
597 | (unsigned int) string_buffer - | 597 | (unsigned long) string_buffer - |
598 | (unsigned int) next_free_string) < ICON_LENGTH) | 598 | (unsigned long) next_free_string) < ICON_LENGTH) |
599 | { | 599 | { |
600 | splash(HZ,true,str(LANG_FILETYPES_STRING_BUFFER_EMPTY)); | 600 | splash(HZ,true,str(LANG_FILETYPES_STRING_BUFFER_EMPTY)); |
601 | return NULL; | 601 | return NULL; |
@@ -643,8 +643,8 @@ static char* get_string(const char* str) | |||
643 | return NULL; | 643 | return NULL; |
644 | 644 | ||
645 | if (l <= (sizeof(string_buffer) + | 645 | if (l <= (sizeof(string_buffer) + |
646 | (unsigned int) string_buffer - | 646 | (unsigned long) string_buffer - |
647 | (unsigned int) next_free_string)) | 647 | (unsigned long) next_free_string)) |
648 | { | 648 | { |
649 | strcpy(next_free_string,str); | 649 | strcpy(next_free_string,str); |
650 | cp=next_free_string; | 650 | cp=next_free_string; |