Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Error when compiling parser.cpp in svn 13708
(1/1)
			gd_on:
			
			
--- Quote ---C:\Users\Gerard\Documents\CodeBlocks_SVN\CodeBlocks_src\src\plugins\contrib\clangd_client\src\codecompletion\parser\parser.cpp|1662|error: operands to '?:' have different types 'size_t' {aka 'long long unsigned int'} and 'std::nullptr_t'|
--- End quote ---
This error is obtained with MingW64 / Msys2 g++ 15.2 on Windows. Adding an explicit cast to site_t before nullptr corrects the compilation error. But is it the correct solution ?
		
			christo:
			
			In the patch I provided in https://sourceforge.net/p/codeblocks/code/13708 it was
--- Code:  ---size_t remainingToParse = pParser ? pParser->GetFilesRemainingToParse() : 0;
--- End code ---
I think we should change nullptr back to 0 as above.
		
			Miguel Gimenez:
			
			Fixed in r13710.
		
Navigation
[0] Message Index
Go to full version