Grove-Temperature_Sensor_V1.2 source code

In the purpose of a school project I’m using the Grove-Temperature_Sensor_V1.2: Grove - Temperature Sensor V1.2 - Seeed Wiki

I’m using arduino and when I tryied the code that the website provide I got an error at this ligne:
const int R0 = 100000; // R0 = 100k

The value R0 is an integer but the value is too big for an integer (range of -32,768 to 32,767 with arduino). I changed the ligne so it could work:
const long int R0 = 100000;

Can someone change the code into the website ?