Email or username:

Password:

Forgot your password?
Top-level
Windfisch

@unnick @raimue the second is actually relevant. C and iirc C++ do not specify the signed integer representation :D

4 comments
Rainer Müller

@Windfisch @unnick C++20 and C23 specify two's complement for signed integers. Earlier standards also allowed one's complement or signed magnitude. However, there is no modern compiler that implements anything else than two's complement for signed integer representation anyway. But now let's shut up and don't ruin a good joke! 😜

Windfisch

@raimue @unnick :D

also, given that i'm currently forcing C11 into our C89 codebase at work, we probably won't see C23 within the next decade :(

mxk

@raimue @Windfisch @unnick also, this is like the general pattern of most autotools checks.
They are *technically* valid things to check, just that most aren't really worth checking anymore in a world where most modern Unix software only realistically supports Linux (GNU and MUSL) and MacOS anyways.

unnick

@Windfisch @raimue someone using ones complement in 2024 is about as likely as UB deleting your whole drive

Go Up