Login | Register
My pages Projects Community openCollabNet

Discussions > dev [DISABLED] > Re: FSFS/svn-rep-sharing-stats questions

subversion
Discussion topic

There will be a brief maintenance window every Friday at 17:00 Pacific.
For further details, see CollabNet's maintenance and upgrade policy.

Back to topic list

Re: FSFS/svn-rep-sharing-stats questions

Author Daniel Widenfalk <Daniel dot Widenfalk at iar dot se>
Full name Daniel Widenfalk <Daniel dot Widenfalk at iar dot se>
Date 2009-10-12 23:30:59 PDT
Message David Glasser wrote:
> <snip>
>
> Also, I'm not really sure that casting unsigned int<->void* is
> technically well-defined.

Hi all,

Excuse me for barging in like this but as I've got some
cross compiler development background I feel like I could
give you a small nugget of information here.

The cast is well defined but may not work on 64-bit
architectures that define int as a 32 bit type (or any arch
where a (default) pointer is larger than an int). You should
consider using uintptr_t (or intptr_t), which is defined in
<stddef.h>, whenever you need to do freaky stuff with pointers.
Or simply cast to a char * (assuming, of course, that a char
is 8 bits...).

Regards
/Daniel Widenfalk

« Previous message in topic | 10 of 12 | Next message in topic »

Messages

Show all messages in topic

FSFS/svn-rep-sharing-stats questions Daniel Shahaf <d dot s at daniel dot shahaf dot name> Daniel Shahaf <d dot s at daniel dot shahaf dot name> 2009-10-12 15:36:23 PDT
     Re: FSFS/svn-rep-sharing-stats questions glasser David Glasser 2009-10-12 16:55:15 PDT
         Re: FSFS/svn-rep-sharing-stats questions Daniel Shahaf <d dot s at daniel dot shahaf dot name> Daniel Shahaf <d dot s at daniel dot shahaf dot name> 2009-10-12 19:03:02 PDT
             Re: FSFS/svn-rep-sharing-stats questions brane Branko Cibej 2009-10-12 19:39:43 PDT
                 Re: FSFS/svn-rep-sharing-stats questions Daniel Shahaf <d dot s at daniel dot shahaf dot name> Daniel Shahaf <d dot s at daniel dot shahaf dot name> 2009-10-12 19:58:34 PDT
                     Re: FSFS/svn-rep-sharing-stats questions Daniel Shahaf <d dot s at daniel dot shahaf dot name> Daniel Shahaf <d dot s at daniel dot shahaf dot name> 2009-10-12 20:18:03 PDT
                     Re: FSFS/svn-rep-sharing-stats questions stsp Stefan Sperling 2009-10-13 03:24:32 PDT
                     Re: FSFS/svn-rep-sharing-stats questions brane Branko Cibej 2009-10-13 07:04:49 PDT
                         Re: FSFS/svn-rep-sharing-stats questions Daniel Shahaf <d dot s at daniel dot shahaf dot name> Daniel Shahaf <d dot s at daniel dot shahaf dot name> 2009-10-13 07:20:05 PDT
         Re: FSFS/svn-rep-sharing-stats questions Daniel Widenfalk <Daniel dot Widenfalk at iar dot se> Daniel Widenfalk <Daniel dot Widenfalk at iar dot se> 2009-10-12 23:30:59 PDT
             Re: FSFS/svn-rep-sharing-stats questions Daniel Shahaf <d dot s at daniel dot shahaf dot name> Daniel Shahaf <d dot s at daniel dot shahaf dot name> 2009-10-13 07:04:49 PDT
                 Re: FSFS/svn-rep-sharing-stats questions Daniel Shahaf <d dot s at daniel dot shahaf dot name> Daniel Shahaf <d dot s at daniel dot shahaf dot name> 2009-10-13 12:27:22 PDT
Messages per page: