Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual C++ "Debug Assertion Failed"

I had compiled a code using Visual Studio 2010, then I tried to run it, unfortunately during testing sometimes I had errors "Debug Assertion Failed!"....Expression (unsingned)(c+1)<=256

Then I tried the same scenario but using gcc and it ran without any problem. any idea how about this problem?

like image 404
fattah.safa Avatar asked Dec 21 '22 03:12

fattah.safa


1 Answers

You're calling a function like isalpha() or isdigit() with an integer whose value is not a single byte 0-255.

like image 60
librik Avatar answered Jan 03 '23 02:01

librik