[GH-ISSUE #2248] Build Error on 64-bit linux machines #828

Closed
opened 2026-03-17 16:53:46 +03:00 by kerem · 2 comments
Owner

Originally created by @chaserhkj on GitHub (Jun 14, 2013).
Original GitHub issue: https://github.com/hrydgard/ppsspp/issues/2248

Building from the latest git version creates this compile error: http://pastebin.com/edGwucQE

It seems that the conversion from void* type to u32 type creates compile error on 64-bit systems, cause on 64-bit systems void* is a 64-bit length pointer, thus such a cast from void* to u32 certainly loses precision.

Need the maintainer of file GPU/GLES/TransformPipeline.cpp to fix this.

Originally created by @chaserhkj on GitHub (Jun 14, 2013). Original GitHub issue: https://github.com/hrydgard/ppsspp/issues/2248 Building from the latest git version creates this compile error: http://pastebin.com/edGwucQE It seems that the conversion from void\* type to u32 type creates compile error on 64-bit systems, cause on 64-bit systems void\* is a 64-bit length pointer, thus such a cast from void\* to u32 certainly loses precision. Need the maintainer of file GPU/GLES/TransformPipeline.cpp to fix this.
kerem closed this issue 2026-03-17 16:53:51 +03:00
Author
Owner

@unknownbrackets commented on GitHub (Jun 14, 2013):

Well, it's just for a hash, so the goal here is to just truncate the pointer. Does casting (u32)(uintptr_t) fix it?

-[Unknown]

<!-- gh-comment-id:19440927 --> @unknownbrackets commented on GitHub (Jun 14, 2013): Well, it's just for a hash, so the goal here is to just truncate the pointer. Does casting `(u32)(uintptr_t)` fix it? -[Unknown]
Author
Owner

@chaserhkj commented on GitHub (Jun 14, 2013):

@unknownbrackets
casting to (u32)(uintptr_t) seems to fix the problem.
Here's the pull request for fix this...

<!-- gh-comment-id:19441295 --> @chaserhkj commented on GitHub (Jun 14, 2013): @unknownbrackets casting to (u32)(uintptr_t) seems to fix the problem. Here's the pull request for fix this...
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ppsspp#828
No description provided.