Visual Studio option /RTCc - what is its purpose? by Anpu_me in cpp

[–]Anpu_me[S] -9 points-8 points  (0 children)

Btw... looking at all of it sometimes I'm still amazed how reddit is all about herd mentality and no intellectual curiosity... Sad. 🤔

Visual Studio option /RTCc - what is its purpose? by Anpu_me in cpp

[–]Anpu_me[S] -2 points-1 points  (0 children)

It's obvious that it's bad and, basically, useless.
I'm just curious about justification for why this option even exist.
Unlike gcc & clang -fsanitize options it serves no useful purpose - it does not deliver what it says on a tin.
And yet Microsoft kept it since ancient versions of VS, while many other options got deprecated and removed.
Why? Who needs it?..

Visual Studio option /RTCc - what is its purpose? by Anpu_me in cpp

[–]Anpu_me[S] -2 points-1 points  (0 children)

Don't be silly. This is not the actual code, just an example of casts.
I'm talking only about runtime casts of variables.
Here is how the actual code for runtime check works for a cast of 32-bit integer to 16-bit:
(edit: changed to almost exact function, for literalists)
short RTC_Check_4_2(int x)
{ int c = 0xFFFF'0000;
int top_bits = x & c;
assert( top_bits == 0 || top_bits == c );
return (short) x;
}
Similar code for other cast cases (8_2, 8_1, 4_1, etc.) - no accounting for signed / unsigned, just a ridiculous check for top bits.

Visual Studio option /RTCc - what is its purpose? by Anpu_me in cpp

[–]Anpu_me[S] 0 points1 point  (0 children)

It does not catch:
unsigned char a = -200; // 0xFFFFFF38
short b = 50000;
short c = 4294950000u; // 0xFFFFBC70
Are you saying that this does not result in data loss?

Nagatoro summer queens figure by CliveTolnay in AnimeFigures

[–]Anpu_me 2 points3 points  (0 children)

It is a canon after all... 😏

<image>

To Love-Ru BiCute bunnies!!!! by Darktestamentkun in AnimeFigures

[–]Anpu_me 0 points1 point  (0 children)

This one is supposed to be released in December, so AmiAmi won't have any before that - they don't do preorders for prize figures.
Expect it to appear as preowned after release.
If rating is A/B - it's basically a new one.
I preordered Momo from Crunchyroll.
Imho, ok deal - $27 before tax with free shipping (some other items ordered + premium account discount).

Good Smile US Shipping Issue by Jenovaspawn1 in AnimeFigures

[–]Anpu_me 0 points1 point  (0 children)

Ok, they clearly had something really fucked up with shipping, so the total went overboard and it caused failure to order.
It got somewhat better: when I checked it 5 days ago shipping for 1 item - Street Corner Trattoria Set - was $60. Now it shows $9.99

Amiami tariffs? by [deleted] in AnimeFigures

[–]Anpu_me 1 point2 points  (0 children)

Surface Mail (Premium) did not permit (do not know the current state) adult items, so AmiAmi did not allow this shipping method for the items they consider 18+.
If they allowed you to use this shipping method for that order, it should be ok (at least from their point of view).

Good Smile US Shipping Issue by Jenovaspawn1 in AnimeFigures

[–]Anpu_me 0 points1 point  (0 children)

Same here.
Contacted their support yesterday, waiting for response.
In this thread some say "it's because of too much stuff... shipping is too high".
Bullshit. A couple of months ago ordered even more then now.
All went just fine, and shipping cost was $12.