2010-06-21 Atsushi Enomoto <atsushi@ximian.com>
[mcs.git] / errors / cs0266-14.cs
blob57d8e01d261ea72f9dc2559ec9cf789e0f2a03ad
1 // CS0266: Cannot implicitly convert type `System.IntPtr' to `byte*'. An explicit conversion exists (are you missing a cast?)
2 // Line: 23
3 // Compiler options: -unsafe
5 using System;
7 public class Pixbuf {
8 static void Main (string [] args)
10 Bug ();
13 public IntPtr Pixels {
14 get {
15 return IntPtr.Zero;
18 public static unsafe void Bug ()
20 Pixbuf pixbuf = null;
21 //should be:
22 //byte *pix = (byte *)pixbuf.Pixels;
23 byte *pix = pixbuf.Pixels;