This Trac instance is not used for development anymore!

We migrated our development workflow to git and Gitea.
To test the future redirection, replace trac by ariadne in the page URL.

Changeset 9846 for ps


Ignore:
Timestamp:
07/16/11 19:27:07 (13 years ago)
Author:
Jan Wassenberg
Message:

acpi: fix cast error (caught by runtime check)
x86_x64: simplify MSC version check

Location:
ps/trunk/source/lib/sysdep
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ps/trunk/source/lib/sysdep/acpi.cpp

    r9362 r9846  
    6464    u8 sum = 0;
    6565    for(PCV_u8 p = buf; p < buf+numBytes; p++)
    66         sum = u8(sum + *p);
     66        sum = u8((sum + *p) & 0xFF);
    6767    return sum;
    6868}
  • ps/trunk/source/lib/sysdep/arch/x86_x64/x86_x64.cpp

    r9410 r9846  
    4646
    4747#define CPUID_INTRINSIC 0
    48 #if MSC_VERSION > 1500 || (MSC_VERSION == 1500 && _MSC_FULL_VER >= 150030729)   // __cpuidex available on VC10+ and VC9 SP1 (allows setting ecx beforehand)
     48#if defined(_MSC_FULL_VER) && _MSC_FULL_VER >= 150030729    // __cpuidex available on VC10+ and VC9 SP1 (allows setting ecx beforehand)
    4949# undef CPUID_INTRINSIC
    5050# define CPUID_INTRINSIC 1
Note: See TracChangeset for help on using the changeset viewer.