lighttransport / nanort

NanoRT, single header only modern ray tracing kernel.
MIT License
1.07k stars 89 forks source link

Use size_t(1) instead of 1UL to avoid some compilers template error. #45

Closed omigamedev closed 5 years ago

omigamedev commented 5 years ago

size_t is different from UL on some compilers, so statically cast the immediate value directly to size_t otherwise the compile will complain about mismatching template parameters for std::max

syoyo commented 5 years ago

Awesome! Thanks!