--- SpaceAryarya-KXL-1.0.2.old/src/load.c +++ SpaceAryarya-KXL-1.0.2/src/load.c @@ -145,7 +145,7 @@ else StageDatas = (StageData **)KXL_Realloc(StageDatas, sizeof(StageData *) * (Root->StageMax + 1)); StageDatas[Root->StageMax] = (StageData *)KXL_Malloc(sizeof(StageData)); - sscanf(buff,"%d%d%d%d", + sscanf(buff,"%"SCNu16"%"SCNu8"%"SCNu8"%"SCNu16, &(StageDatas[Root->StageMax]->Time), &(StageDatas[Root->StageMax]->CreateNo), &(StageDatas[Root->StageMax]->Max), --- SpaceAryarya-KXL-1.0.2.old/src/ranking.c +++ SpaceAryarya-KXL-1.0.2/src/ranking.c @@ -37,9 +37,9 @@ Uint16 i; if ((fp = fopen(DATA_PATH "/.score", "r"))) { - fscanf(fp, "%d", &(Root->HiScore)); + fscanf(fp, "%"SCNu32, &(Root->HiScore)); for (i = 0; i < 5; i ++) - fscanf(fp, "%d %d %s", + fscanf(fp, "%"SCNu32" %"SCNu8" %s", &(Ranking[i]->Score), &(Ranking[i]->Stage), Ranking[i]->Name);