angstsmurf / spatterlight

Updated fork of Spatterlight
GNU General Public License v3.0
105 stars 5 forks source link

Fix a few small type mismatches #63

Closed cspiegel closed 1 year ago

cspiegel commented 1 year ago

uint64_t isn't guaranteed to be an unsigned long long, so cast in printf and use SCN macro in scanf.

int16_t isn't guaranteed to be a short, so use an SCN macro in scanf.

enums aren't guaranteed to have the same representation as int, so use an intermediate variable.

angstsmurf commented 1 year ago

Thanks! I did wonder what the proper way to do this is.