Репозитории ALT
S: | 0.9.1-alt5.qa1 |
5.1: | 0.9.1-alt5 |
4.1: | 0.9.1-alt3 |
4.0: | 0.9.1-alt2 |
3.0: | 0.9.0-alt3 |
Группа :: Система/Библиотеки
Пакет: libfame
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: libfame-0.9.1-x86_64.patch
Скачать
Скачать
diff -Naupr libfame-0.9.1.orig/src/fame_malloc.c libfame-0.9.1/src/fame_malloc.c
--- libfame-0.9.1.orig/src/fame_malloc.c 2003-06-20 14:40:30.000000000 +0200
+++ libfame-0.9.1/src/fame_malloc.c 2005-09-30 11:08:48.000000000 +0200
@@ -36,9 +36,9 @@ void* fame_malloc(size_t size)
*/
ptr = (unsigned char*) malloc(size+ALIGN);
- aligned = (unsigned char*) (((unsigned int)ptr & (~(ALIGN-1))) + ALIGN );
+ aligned = (unsigned char*) (((unsigned long)ptr &(~(ALIGN-1))) + ALIGN );
padding = aligned - 1;
- *padding = (ALIGN-1) - ((unsigned int)ptr & (ALIGN-1));
+ *padding = (ALIGN-1) - ((unsigned long)ptr & (ALIGN-1));
return ((void*)aligned);
}