mirror of
https://github.com/php/php-src.git
synced 2024-12-15 04:45:03 +08:00
these are not bits, but bytes..
This commit is contained in:
parent
be2f5ce9e7
commit
573f4043bf
@ -82,7 +82,7 @@ Type specifiers
|
||||
Note on 64bit compatibility
|
||||
---------------------------
|
||||
Please do not forget that int and long are two different things on 64bit
|
||||
OSes (int is 4bit and long is 8bit), so make sure you pass longs to "l"
|
||||
OSes (int is 4 bytes and long is 8 bytes), so make sure you pass longs to "l"
|
||||
and ints to strings length (i.e. for "s" you need to pass char * and int),
|
||||
not the other way round!
|
||||
Remember: "l" is the only case when you need to pass long (and that's why
|
||||
|
Loading…
Reference in New Issue
Block a user