BinaryByter
I don't see how you could represent 19 in a way that makes it look like 39
Alignant
I mean, I'm almost sure if you run it with a debugger
Alignant
It would say that size_stor is 19
BinaryByter
no
BinaryByter
xD
BinaryByter
because I have an if statement that checks for that
Alignant
And they are both size_t? :D
BinaryByter
which ones?
Alignant
vec_size
Alignant
I see that stor is size_t
BinaryByter
yea both are size_t
BinaryByter
funny thing is:
BinaryByter
BinaryByter
this creates the exactly same type of error
Alignant
That's scary
BinaryByter
yep
Alignant
I hope you're not making that up :D
BinaryByter
I am - I kid you not - not making that up
BinaryByter
else I wouldn't ask xD
BinaryByter
@QNeko is your cout broken?
BinaryByter
(yes it is)
BinaryByter
xD
BinaryByter
this branching is never taken
Alignant
It'd be a nice joke byw
BinaryByter
I swear it's not a joke
Alignant
Did you make != look like =/=?
Alignant
Lol
BinaryByter
yup
BinaryByter
font ligatures :D
Alignant
I made -> look like an arrow when I did haskell
BinaryByter
lol
Ludovic 'Archivist'
this branching is never taken
which is normal given the conditions
BinaryByter
which is normal given the conditions
yes. but when I cout that, I get completely different stuff
BinaryByter
BinaryByter
see that output "20 39"?
BinaryByter
i'd like it to be "20 19"
Ludovic 'Archivist'
yeah, but it looks the issue is not at all with cout
BinaryByter
rather?
BinaryByter
like. how can I make it work?
Alignant
U sad tha issue is not with cout
Alignant
Well, the bug must be in your cout :D
Alignant
no
Ludovic 'Archivist'
like. how can I make it work?
add parenthesis around the substraction and try again
Alignant
Lol
BinaryByter
i've also tried adding cv
Alignant
Guys, your code is exiting. I want to make a tv show about it
BinaryByter
xD
Palinuro
Like the majority of IDEs
not visual studio iirc
Alignant
You know, when it's your side project is fun. But when it's your job
Alignant
It's scary
Mat
not visual studio iirc
Majority :) VS is Win-only GNOME Builder is Linux-only But they're very rare
BinaryByter
so it's kinda scary
Alignant
You mean SPOOOOOOKKKKY?
BinaryByter
yup
BinaryByter
maybe stackoverflow can help me?
BinaryByter
see that if statement?
BinaryByter
if I make it evaluate vec_size -1, it prints out "works". but if I make it evaluate the stored result, it doesn't
BinaryByter
what kind of sorcery is that?
BinaryByter
changing to int doesn'tt exactly help
Alignant
It seems like in 39 2 is somehow being incremented
Alignant
How does it work with different values?
BinaryByter
when I subtract 2 I get 39
BinaryByter
when I add 2 I get 42
BinaryByter
when I double vec_size, I get 40
BinaryByter
which is correct
BinaryByter
WHAT THE ACTUAL FUCK?
BinaryByter
i'll look at it tommorrow
BinaryByter
fuck it
BinaryByter
lol
BinaryByter
hi :D
Alignant
Yah, that's scarry
BinaryByter
xD
Alignant
I wish my code was that unusual