Merging remote into local

master
Anton Lydike 5 years ago
commit 0ab4ae2be9

@ -57,9 +57,8 @@ int image_save_bmp(Image image, const char* path) {
if ((unsigned long int) size > (unsigned long int) UINT_MAX) { if ((unsigned long int) size > (unsigned long int) UINT_MAX) {
printf("bitmap is too big!\n"); printf("bitmap is too big!\n");
return 0; return 0;
} else {
printf("predicted size is %lu out of %u possible", size, UINT_MAX);
} }
FILE *fp = fopen(path, "w"); FILE *fp = fopen(path, "w");
//unsigned char* bytes = calloc(sizeof(char), size); //unsigned char* bytes = calloc(sizeof(char), size);
// magic bytes, signature "BM" // magic bytes, signature "BM"

Loading…
Cancel
Save