plustek-pp: fix type-punning error

merge-requests/1/head
Julien BLACHE 2010-06-23 18:21:33 +02:00
rodzic d4d1e4de7d
commit d9f370158e
1 zmienionych plików z 0 dodań i 12 usunięć

Wyświetl plik

@ -331,18 +331,6 @@ static int getUserPtr(const pVoid useraddr, pVoid where, UInt size )
if (copy_from_user(where, useraddr, size))
return -EFAULT;
#else
case sizeof(UChar):
*(pUChar)where = *(pUChar)useraddr;
break;
case sizeof(UShort):
*(pUShort)where = *(pUShort)useraddr;
break;
case sizeof(ULong):
*(pULong)where = *(pULong)useraddr;
break;
default:
memcpy( where, useraddr, size );
#endif