CORCOMPILE_FIXUP_BLOB_KIND GetKind()
{
- int kind = (int)(SIZE_T)GetHandle();
+ SIZE_T kind = (SIZE_T)GetHandle();
if ((kind & 1) == 1)
{
bool IsCorrectNumberSequential(NumberSequential* p)
{
if(p->i32 != (-0x7fffffff - 1) || p->ui32 != 0xffffffff || p->s1 != -0x8000 || p->us1 != 0xffff || p->b != 0 ||
- p->sb != 0x7f ||p->i16 != -0x8000 || p->ui16 != 0xffff || p->i64 != (unsigned)-1234567890 ||
+ p->sb != 0x7f ||p->i16 != -0x8000 || p->ui16 != 0xffff || p->i64 != (uint64_t)-1234567890 ||
p->ui64 != 1234567890 || (p->sgl) != 32.0 || p->d != 3.2)
{
return false;
bool IsCorrectNumberSequential(NumberSequential* p)
{
if(p->i32 != INT_MIN || p->ui32 != 0xffffffff || p->s1 != -0x8000 || p->us1 != 0xffff || p->b != 0 ||
- p->sb != 0x7f ||p->i16 != -0x8000 || p->ui16 != 0xffff || p->i64 != (unsigned)-1234567890 ||
+ p->sb != 0x7f ||p->i16 != -0x8000 || p->ui16 != 0xffff || p->i64 != (uint64_t)-1234567890 ||
p->ui64 != 1234567890 || (p->sgl) != 32.0 || p->d != 3.2)
{
return false;
bool IsCorrectNumberSequential(NumberSequential* p)
{
if(p->i32 != INT_MIN || p->ui32 != 0xffffffff || p->s1 != -0x8000 || p->us1 != 0xffff || p->b != 0 ||
- p->sb != 0x7f ||p->i16 != -0x8000 || p->ui16 != 0xffff || p->i64 != (unsigned)-1234567890 ||
+ p->sb != 0x7f ||p->i16 != -0x8000 || p->ui16 != 0xffff || p->i64 != (uint64_t)-1234567890 ||
p->ui64 != 1234567890 || (p->sgl) != 32.0 || p->d != 3.2)
{
return false;
int count = 0;
float sum = 0.0;
- float val = (float)first;
+ double val = first;
va_list args;
// initialize variable arguments.
va_start(args, first);
- while (val != (float)-1) {
- sum += val;
+ while (val != (double)-1) {
+ sum += (float)val;
count++;
- val = (float)va_arg(args, double);
+ val = va_arg(args, double);
}
// reset variable arguments.
va_end(args);