[v0.89] Change freq from int64 to int32, which fixes a compilation issue. Fix Makefile in Windows

This commit is contained in:
Dr-Noob
2020-11-24 12:52:42 +01:00
parent 8645b54b58
commit fbea497740
4 changed files with 6 additions and 11 deletions

View File

@@ -157,7 +157,7 @@ char* get_str_freq(struct frequency* freq) {
else if(freq->max >= 1000)
snprintf(string,size,"%.2f"STRING_GIGAHERZ,(float)(freq->max)/1000);
else
snprintf(string,size,"%ld"STRING_MEGAHERZ,freq->max);
snprintf(string,size,"%d"STRING_MEGAHERZ,freq->max);
return string;
}

View File

@@ -46,8 +46,8 @@ enum {
typedef int32_t VENDOR;
struct frequency {
int64_t base;
int64_t max;
int32_t base;
int32_t max;
};
struct hypervisor {