diff dmd/TypeSArray.d @ 96:acd69f84627e

further work
author Trass3r
date Tue, 31 Aug 2010 02:12:15 +0200
parents 2e2a5c3f943a
children 12c0c84d13fd
line wrap: on
line diff
--- a/dmd/TypeSArray.d	Mon Aug 30 23:08:44 2010 +0200
+++ b/dmd/TypeSArray.d	Tue Aug 31 02:12:15 2010 +0200
@@ -617,7 +617,14 @@
 	
     override type* toCParamtype()
 	{
+version(SARRAYVALUE)
+{
+		return toCtype();
+}
+else
+{
 		// arrays are passed as pointers
 		return next.pointerTo().toCtype();
+}
 	}
 }