So I've been struggling over this small problem, where my bitmap header and resizing functions seem to work for bitmaps, but check50 says it doesn't work for 1x1 pixel bitmaps. I want to know why this is.
Source code: http://pastebin.com/xmQ8rMmw
Here is the output that check50 gives for my resize.c
:) resize.c and bmp.h exist
:) resize.c compiles
:) doesn't resize 1x1-pixel BMP when n is 1
:( resizes 1x1-pixel BMP to 2x2 correctly when n is 2
:( resizes 1x1-pixel BMP to 3x3 correctly when n is 3
:) resizes 1x1-pixel BMP to 4x4 correctly when n is 4
:) resizes 1x1-pixel BMP to 5x5 correctly when n is 5
:) resizes 2x2-pixel BMP to 4x4 correctly when n is 2
https://sandbox.cs50.net/checks/8ac3c1b266314e4391b252798c6eb172
Help would be appreciated ^