What the heck am i doing wrong? I'm just trying to create a 8 bit unsigned variable.
Andy Valencia
dont at spam.me
Wed May 21 14:05:53 UTC 2025
On Friday, 16 May 2025 at 19:04:24 UTC, WhatMeWorry wrote:
> cast(uint8_t) b = cast(uint8_t) b + cast(uint8_t) 5; //
> onlineapp.d(19): Error: cannot
>
> implicitly convert expression
>
> `cast(int)b + 5` of type `int`
> to
> `ubyte`
>
> }
I ran into something related which was discussed here. I finally
found the advanced search on the forum (an amazing piece of SW)
and here's some more information which may be helpful:
https://forum.dlang.org/post/jvvfmbrvfbwkbwbsyctv@forum.dlang.org
Andy
More information about the Digitalmars-d-learn
mailing list