zunda on Nostr: こうかな? $ cat ganyo.c int main(void) { int a = 0; return *((int *)a); } $ gcc ...
こうかな?
$ cat ganyo.c
int main(void)
{
int a = 0;
return *((int *)a);
}
$ gcc -Wall ganyo.c
ganyo.c: In function ‘main’:
ganyo.c:4:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
4 | return *((int *)a);
| ^
Published at
2024-05-09 21:59:35Event JSON
{
"id": "88ddf9169e3abbabbc9764dc656fe629e4173b904ac4fe4c5a6250888a160bbf",
"pubkey": "a4fbd90064a67e0d32c9f317677b7fec9cb25beed5399971d9b19300cc35aa56",
"created_at": 1715291975,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.zunda.ninja/users/zundan/statuses/112413374898364568",
"activitypub"
]
],
"content": "こうかな?\n\n$ cat ganyo.c \nint main(void)\n{\n int a = 0;\n return *((int *)a);\n}\n$ gcc -Wall ganyo.c \nganyo.c: In function ‘main’:\nganyo.c:4:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]\n 4 | return *((int *)a);\n | ^",
"sig": "cd0be45a4dba370ce76504554f7b697da3332dfab1b64b4c9da46e4b6e522cff5af0be0aabd54536db28110a06be3c676409ce95d9f32d88b9e8fb965048aafb"
}