mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	Merge pull request #427 from jwakely/patch-1
Convert stream to bool explicitly
This commit is contained in:
		
						commit
						757585d96f
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -76,7 +76,7 @@ void invoke_gdb() {
 | 
			
		|||
    for (;;) {
 | 
			
		||||
        std::cerr << "(C)ontinue, (A)bort, (S)top, (T)hrow exception, Invoke (G)DB\n";
 | 
			
		||||
        char result;
 | 
			
		||||
        bool ok = (std::cin >> result);
 | 
			
		||||
        bool ok = bool(std::cin >> result);
 | 
			
		||||
        if (!ok) exit(ERR_INTERNAL_FATAL); // happens if std::cin is eof or unattached.
 | 
			
		||||
        switch(result) {
 | 
			
		||||
        case 'C':
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue