Comments (2)
int
is usually 4 bytes except a few really rare/old exceptions, and I'm guessing those rare exceptions would not be able to run python or even SDL. We use int
in like a million places and a lot of API out of our control already uses int
. In short, I don't think going over the code replacing int
with anything else is a good idea.
However, the size of long
being either 4 or 8 bytes is a more common issue that occasionally bites us, and when it does we do use something like long long
or explicitly sized integer types
from pygame-ce.
Actually, we could re-open this issue to investigate long
usage. I'm sure there would be some places where different platforms behave differently due to this.
So for those who don't know, windows builds with the MSVC have 32-bit long
s even on 64-bit hardware (eww, I know) and generally every other 64-bit platform have 64-bit sized long
from pygame-ce.
Related Issues (20)
- Maximizing a window invalidates the window surface HOT 7
- Pressing some keys prevent others keys to be detected has pressed HOT 3
- SDL2 Blit Does Not Support FRect
- Segfault in `pygame.examples.video` when running directly under Wayland HOT 5
- `Renderer.blit()` doesn't check if the texture is created by another renderer.
- Window should be subclassable
- Missing Test for pygame.draw.arc in draw_test.py HOT 2
- Unnecessary warning gets issued when constructing a SysFont with the default font explicitly HOT 2
- pygame.Color.from_normalized() HOT 3
- Add invlerp() and remap() functions to pygame.math
- Win10 libpng16-16.dll incompatibility - fixed with older DLL HOT 16
- PS4 controller on Raspberry Pi OS detected with legacy mappings HOT 10
- Docs on mobile being weird
- pygame gets overwritten by console on shared /dev/fb0 HOT 1
- pygame.draw.rects HOT 4
- SysFont does not get the real bold version of a font HOT 3
- transform.scale() and transform.scale_by() crash when scaling large surfaces HOT 3
- Alpha fillers
- Seg fault caused when attempting vec4 += vec3 in a fragment shader HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pygame-ce.