Skip to content

Commit

Permalink
Change types to fix errors-2
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Nikula committed Jan 31, 2020
1 parent 9ee6c42 commit 95c0067
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pifm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ void getRealMemPage(void** vAddr, void** pAddr) {
unsigned long long frameinfo;

int fp = open("/proc/self/pagemap", O_RDONLY);
lseek(fp, a/4096*8, SEEK_SET);
lseek(fp, (int)a/4096*8, SEEK_SET);
read(fp, &frameinfo, sizeof(frameinfo));

*pAddr = (void*)((int)(frameinfo*4096));
Expand Down

0 comments on commit 95c0067

Please sign in to comment.