[teklib-general] teklib: 64bit-awareness was broken in the HAL module, corrected
Timm S. Mueller
tmueller at neoscientists.org
Sat Jul 18 22:43:52 CEST 2009
details: http://hg.teklib.org/teklib/rev/ab0d29b2a894
changeset: 269:ab0d29b2a894
user: Timm S. Mueller <tmueller at neoscientists.org>
date: Sat Jul 18 22:04:33 2009 +0200
description:
64bit-awareness was broken in the HAL module, corrected
diffs (56 lines):
diff -r 4acfa0c2bd25 -r ab0d29b2a894 src/exec/tests/interface.c
--- a/src/exec/tests/interface.c Mon Jul 13 09:58:28 2009 +0200
+++ b/src/exec/tests/interface.c Sat Jul 18 22:04:33 2009 +0200
@@ -19,7 +19,7 @@
mem = TExecIFace->Alloc(TExecBase, TNULL, 1000);
if (mem)
{
- printf("have mem, size: %d\n", TExecIFace->GetSize(TExecBase, mem));
+ printf("have mem, size: %d\n", (TUINT) TExecIFace->GetSize(TExecBase, mem));
TExecIFace->Free(TExecBase, mem);
}
TDestroy(&TExecIFace->IFace.tif_Handle);
diff -r 4acfa0c2bd25 -r ab0d29b2a894 src/hal/posix/hal.c
--- a/src/hal/posix/hal.c Mon Jul 13 09:58:28 2009 +0200
+++ b/src/hal/posix/hal.c Sat Jul 18 22:04:33 2009 +0200
@@ -138,7 +138,7 @@
*/
EXPORT TAPTR
-hal_alloc(struct THALBase *hal, TUINT size)
+hal_alloc(struct THALBase *hal, TSIZE size)
{
TAPTR mem = malloc(size);
#ifdef TRACKMEM
@@ -155,7 +155,7 @@
}
EXPORT TAPTR
-hal_realloc(struct THALBase *hal, TAPTR mem, TUINT oldsize, TUINT newsize)
+hal_realloc(struct THALBase *hal, TAPTR mem, TSIZE oldsize, TSIZE newsize)
{
TAPTR newmem;
@@ -183,7 +183,7 @@
}
EXPORT void
-hal_free(struct THALBase *hal, TAPTR mem, TUINT size)
+hal_free(struct THALBase *hal, TAPTR mem, TSIZE size)
{
#ifdef TRACKMEM
if (mem)
diff -r 4acfa0c2bd25 -r ab0d29b2a894 src/visual/tests/fonts.c
--- a/src/visual/tests/fonts.c Mon Jul 13 09:58:28 2009 +0200
+++ b/src/visual/tests/fonts.c Sat Jul 18 22:04:33 2009 +0200
@@ -74,8 +74,8 @@
TTAGITEM *qtags = TVisualGetNextFont(Visual, fqh);
printf("qtags.name = %s\n", (TSTRPTR) TGetTag(qtags, TVisual_FontName, TNULL));
- printf("qtags.italic = %d\n", TGetTag(qtags, TVisual_FontItalic, TNULL));
- printf("qtags.bold = %d\n", TGetTag(qtags, TVisual_FontBold, TNULL));
+ printf("qtags.italic = %d\n", (TUINT) TGetTag(qtags, TVisual_FontItalic, TNULL));
+ printf("qtags.bold = %d\n", (TUINT) TGetTag(qtags, TVisual_FontBold, TNULL));
for (i = 6, j = 0; i < 36; i += 2, j++)
{
More information about the teklib-general
mailing list