Mailinglist Archive: opensuse-packaging (186 mails)

< Previous Next >
Re: [opensuse-packaging] Confusion with spec file
  • From: Philipp Thomas <Philipp.Thomas2@xxxxxxx>
  • Date: Fri, 20 Feb 2009 23:05:08 +0100
  • Message-id: <fq9up4h4nmpnvm53s6fi7vfubtntfhajro@xxxxxxx>
On Thu, 19 Feb 2009 22:30:30 +0100, you wrote:

Could you post the output of "osc sr show -d $foo" here ?

I can't because I'm at home now and don't know the sr number. But it was
simply casting ints to long before casting them to pointer, i.e.
instead of

(void *)(int)val

it's now

(void *)(long)val

Another possibility would be to include stdint.h and use intptr_t or
uintptr_t for casting. If it's software using glib you can use the
GINT_TO_POINTER and GPOINTER_TO_INT macros to cast from/to pointer.

Philipp
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx

< Previous Next >