ChrisDodd / btyacc

Backtracking yacc
18 stars 5 forks source link

Fix some 32/64 bit compile warnings #25

Closed Frassle closed 6 years ago

Frassle commented 6 years ago

This changes some types to size_t and ptrdiff_t in btyaccpa.ske to prevent __int64 to int cast warnings with msvc.

ChrisDodd commented 6 years ago

with the last change, make test seems to be failing with a bunch of error: unknown type name ‘ptrdiff_t’. I've fixed the travis stuff to actually fail when that happens (still getting the hang of Travis integration).

ChrisDodd commented 6 years ago

was just a missing #include <stddef.h> in the skeleton. Thanks for the update!

Frassle commented 6 years ago

Ah yup was just about to add that but you beat me to it. Didn't notice the travis failure, make test doesn't work on my windows box at all, and the project I included the generated parser in must already be including stddef so didn't see it there. Glad to see all simply fixed up, thanks for your help and getting this merged so quickly :+1: