Problemas compilando
Publicado por Fede (14 intervenciones) el 05/11/2002 19:52:55
Tengo problemas cuando compilo esto...
static int xor_value;
static int xor_read (int f, void* p, unsigned int l)
{
int r = read(f, p, l);
int x; char* q; for (x=0, q=p; x < r; x++) q[x] ^= xor_value;
return r;
}
me tira este error...
archivo.cpp(22) : error C2440: '=' : cannot convert from 'void *' to 'char *'
Con MVC6
Alguna sugerencia?
static int xor_value;
static int xor_read (int f, void* p, unsigned int l)
{
int r = read(f, p, l);
int x; char* q; for (x=0, q=p; x < r; x++) q[x] ^= xor_value;
return r;
}
me tira este error...
archivo.cpp(22) : error C2440: '=' : cannot convert from 'void *' to 'char *'
Con MVC6
Alguna sugerencia?
Valora esta pregunta


0