Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Porting issue: 32 to 64 bit pointer conversions
@ 2000-10-06 12:45 Robert Williams
  2000-10-06 15:26 ` Niki W. Waibel
  0 siblings, 1 reply; 10+ messages in thread
From: Robert Williams @ 2000-10-06 12:45 UTC (permalink / raw)
  To: axp-list

I'm trying to port malsync ( http://www.tomw.org/malsync/ )
to the alpha.  There appear to be some 64 bit issues.
The distributed code doesn't work on alpha.

My question:
What is the best way to handle
64 bit pointer to 32 bit integer conversions:

The complaint:

MAL31DBConfig.c: In function `MAL31DBConfigWriteData':
MAL31DBConfig.c:68: warning: cast from pointer to integer of different
size

The code:

65       count = AGArrayCount(dbconfig->newids);
66        AGWriteCompactInt(w, count);
67        for(i = 0; i < count; i++)
68              AGWriteInt32(w, (uint32)(this is a
long)AGArrayElementAt(dbconfig->newids, i));

Bob Williams





^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2000-10-07 16:15 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-10-06 12:45 Porting issue: 32 to 64 bit pointer conversions Robert Williams
2000-10-06 15:26 ` Niki W. Waibel
2000-10-06 16:01   ` Robert Williams
2000-10-06 16:12     ` Chris Eleveld (Sector 7 Group)
2000-10-06 17:09       ` Michal Jaegermann
2000-10-06 18:31         ` Matt Wilson
2000-10-06 20:20         ` Robert Williams
2000-10-06 21:28           ` Matt Wilson
2000-10-06 21:47           ` Michal Jaegermann
2000-10-07 16:15         ` Brad Lucier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox