Issue #223 resolved

Warning in .\src\host\os_uuid.c(24) due to missing type coercion

Oliver Schneider
created an issue
.\src\host\os_uuid.c(24) : warning C4244: '=' : conversion from 'unsigned long' to 'unsigned char', possible loss of data

This warning occurs with VS 2005 and can be addressed one of two ways. The line in question is:

bytes[offset++] = value & 0xff;

Solution 1:

bytes[offset++] = (unsigned char)value;

Solution 2:

bytes[offset++] = (unsigned char)(value & 0xff);

I find the first one more natural, but I'll send two pull-request and you get to pick. Only affects premake-dev.

Pull requests:

Comments (2)

  1. Log in to comment