Ostrzeżenie: przypisanie z niezgodnego typu wskaźnika

Ciągle otrzymuję wiele „przypisań od niezgodnych ostrzeżeń typu wskaźnika” i nie mam pojęcia dlaczego.

myPageFrame pageFrames[numOfFrames];
myPage pages[numOfPages];

//in a for loop
pageFrames[i].thePage = (myState == HOT ? (&pages[i]) : NULL);  // one of the offenders

Dostaję ostrzeżenie za każdym razem, gdy próbuję coś zrobićpageFrames[i].thePage.

Omawiane struktury to:

//algo_structs.h
typedef struct{

int pageNum;

} myPage;

typedef struct myPage{

struct myPage* thePage;
int loaded;
int lastRef;

} myPageFrame;

questionAnswers(2)

yourAnswerToTheQuestion