RE: BCC for Win32 is unhappy @14331
Vadim Konovalov [Mon, 21 Jan 2002 09:48:40 +0000 (12:48 +0300)]
From: "Konovalov, Vadim" <vkonovalov@spb.Lucent.com>
Message-ID: <80C37C8B4041FB4F9135D70A0AAD71B30F00E5@ru0028exch01.spb.lucent.com>

(using IV instead of int)

p4raw-id: //depot/perl@14368

hv.h

diff --git a/hv.h b/hv.h
index 2601259..d679e30 100644 (file)
--- a/hv.h
+++ b/hv.h
@@ -144,8 +144,8 @@ C<SV*>.
 /* The number of placeholders in the enumerated-keys hash */
 #define XHvPLACEHOLDERS(xhv)   ((xhv)->xhv_placeholders)
 
-/* the number of keys that exist() (i.e. excluding placeholers) */
-#define XHvUSEDKEYS(xhv)      (XHvTOTALKEYS(xhv) - XHvPLACEHOLDERS(xhv))
+/* the number of keys that exist() (i.e. excluding placeholders) */
+#define XHvUSEDKEYS(xhv)      (XHvTOTALKEYS(xhv) - (IV)XHvPLACEHOLDERS(xhv))
 
 /*
  * HvKEYS gets the number of keys that actually exist(), and is provided