bazz1tv / pcx2snes

Neviksti's pcx2snes
Other
2 stars 4 forks source link

Floating point exception (core dumped) #2

Open jeffythedragonslayer opened 2 years ago

jeffythedragonslayer commented 2 years ago

When I tried to use tiles.pcx from the working with VRAM tutorial:

$ ./pcx2snes.exe -c16 tiles

Openning graphics file: [tiles.pcx]
Auto-detecting size of image blocks...
****** O P T I O N S ***************
border=ON
pixel format = bit-plane
PCX file: 16x8 pixels
Image mode selected: 0x0 pixel blocks
          image has: 15x7 blocks
Total colors = 16
Palette section to convert: Color #0 to 255
************************************
Floating point exception (core dumped)
jeffythedragonslayer commented 2 years ago

running under gdb we have:

Thread 1 "pcx2snes" received signal SIGFPE, Arithmetic exception.
0x0000000100401536 in ArrangeBlocks ()
jeffythedragonslayer commented 2 years ago

In MSVC we have:

image

jeffythedragonslayer commented 2 years ago

I think size should be a required parameter.