Invalid operands to binary

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
AnonymousTipster
Posts: 197
Joined: Fri Jul 01, 2005 2:50 am

Invalid operands to binary

Post by AnonymousTipster »

Having not updated my toolchain for a while, I run toolchain.sh and update. Afterwards, I try to compile my program which compiled perfectly before the update, the line

Code: Select all

vramaddr = (0x40000000 | sceGeEdramGetAddr()) + VRAM_OFFSET;
now created the error: Invalid operands to binary.
Seeing as this code was borrowed from spharm, I decided to compile that, but I got the same error.
Have I updated incorrectly, or is there a code-wise solution to this problem? Thanks.
User avatar
Jim
Posts: 476
Joined: Sat Jul 02, 2005 10:06 pm
Location: Sydney
Contact:

Post by Jim »

I guess sceGeEdramGetAddr() is now returning void * not unsigned int.

Jim
AnonymousTipster
Posts: 197
Joined: Fri Jul 01, 2005 2:50 am

Post by AnonymousTipster »

Well, I changed the code to

Code: Select all

vramaddr = (0x40000000 | 0x04000000) + VRAM_OFFSET;
Which works, but I don't understand why the GeEdram function was changed...oh well.
Post Reply