Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37871466
en ru br
ALT Linux repos
S:0.9.1-alt5.qa1
5.0: 0.9.1-alt5
4.1: 0.9.1-alt3
4.0: 0.9.1-alt2
3.0: 0.9.0-alt3

Group :: System/Libraries
RPM: libfame

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: libfame-0.9.1-x86_64.patch
Download


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);
 }
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin