From: Jarkko Hietaniemi Date: Mon, 13 Sep 1999 13:25:31 +0000 (+0000) Subject: Applying change #4136 manually introduced patch residue. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=26bb67e24a2110ea6ba2dc0af78d8d58df4415a3;p=p5sagit%2Fp5-mst-13.2.git Applying change #4136 manually introduced patch residue. p4raw-link: @4136 on //depot/cfgperl: 564319723c2c18fa4801cd77e0d203a582b4d5a3 p4raw-id: //depot/cfgperl@4137 --- diff --git a/perl.h b/perl.h index f9242e0..21b8e66 100644 --- a/perl.h +++ b/perl.h @@ -1046,16 +1046,16 @@ Free_t Perl_mfree (Malloc_t where); #define IV_DIG (BIT_DIGITS(IVSIZE * 8)) #define UV_DIG (BIT_DIGITS(IVSIZE * 8)) -+ /* -+ * The macros INT2PTR and NUM2PTR are (despite their names) -+ * bi-directional: they will convert int/float to or from pointers. -+ * However the conversion to int/float are named explicitly: -+ * PTR2IV, PTR2UV, PTR2NV. -+ * -+ * For int conversions we do not need two casts if pointers are -+ * the same size as IV and UV. Otherwise we need an explicit -+ * cast (PTRV) to avoid compiler warnings. -+ */ +/* + * The macros INT2PTR and NUM2PTR are (despite their names) + * bi-directional: they will convert int/float to or from pointers. + * However the conversion to int/float are named explicitly: + * PTR2IV, PTR2UV, PTR2NV. + * + * For int conversions we do not need two casts if pointers are + * the same size as IV and UV. Otherwise we need an explicit + * cast (PTRV) to avoid compiler warnings. + */ #if (IVSIZE == PTRSIZE) && (UVSIZE == PTRSIZE) # define PTRV UV # define INT2PTR(any,d) (any)(d)