fixed integer to data function
Please enter the commit message for your changes. Lines starting