Fixed 'implicit conversion changes signedness' warning