TheSilentDrifter on Nostr: Can you just put a configuration conditional block to check the architecture you are ...
Can you just put a configuration conditional block to check the architecture you are using? Create a type alias which is then set to either usize or u32. That way you could leave all type annotations as your aliased type regardless of the architecture.
Published at
2024-08-11 13:45:45Event JSON
{
"id": "e81bd7451372fdb716ecd35f43f944c5e0651064e76d6e440d9b96b5eb04c47f",
"pubkey": "eb7246eb8e26b0c48dd4f9c2a822a0f4d5c84138937195090932b61a2d756051",
"created_at": 1723383945,
"kind": 1,
"tags": [
[
"e",
"7298b6ea269837f9345554d49d614daeb16b2708e21a718c6d972f092868a4f4",
"",
"root"
],
[
"p",
"c05a23984a26550554ba6e5f5791143fb8fbb12dfe5bb3ae401274e00539f43d"
]
],
"content": "Can you just put a configuration conditional block to check the architecture you are using? Create a type alias which is then set to either usize or u32. That way you could leave all type annotations as your aliased type regardless of the architecture. ",
"sig": "c5311ba2e28424cfb3a3cb969ce053bc74a9ea5d49c5b1e6d079f12c3341829f474d13c6bd1719fc497770719c202a16d7017c83ab53999f3a37863abeec0204"
}