simplify pool_blit_direct()

This commit is contained in:
nick black 2020-12-04 20:38:43 -05:00 committed by Nick Black
parent 11bbf3c4ff
commit 0cba073cc9

View File

@ -967,11 +967,6 @@ pool_blit_direct(egcpool* pool, cell* c, const char* gcluster, int bytes, int co
if(bytes < 0 || cols < 0){
return -1;
}
if(bytes <= 1){
assert(cols < 2);
c->gcluster = htole((uint32_t)*gcluster);
return bytes;
}
if(bytes <= 4){
c->gcluster = 0;
memcpy(&c->gcluster, gcluster, bytes);