Revision
3069
Author
lsansonetti@apple.com
Date
2009-11-30 22:23:07 -0800 (Mon, 30 Nov 2009)

Log Message

property handle missing 64-bit bridgesupport annotations in informal protocols for pointer types

Modified Paths

Diff

Modified: MacRuby/trunk/bridgesupport.cpp (3068 => 3069)


--- MacRuby/trunk/bridgesupport.cpp	2009-12-01 03:25:59 UTC (rev 3068)
+++ MacRuby/trunk/bridgesupport.cpp	2009-12-01 06:23:07 UTC (rev 3069)
@@ -1003,7 +1003,12 @@
 	    const char *p = bs_inf_prot_method->type;
 	    do {
 		const char *p2 = (char *)SkipFirstType(p);
-		const size_t len = p2 - p;
+		size_t len = p2 - p;
+		if (*p == _C_PTR && len > 1) {
+		    strlcat(type, "^", typelen);
+		    p++;
+		    len--;
+		}
 		if (len == 1 && *p == _C_FLT) {
 		    // float -> double
 		    strlcat(type, "d", typelen);