Check if i is equal to zero instead of checking whether it is greater, since i is unsigned in Parser.hpp
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
This commit is contained in:
		
							parent
							
								
									bcda5c9b32
								
							
						
					
					
						commit
						27c8b642d6
					
				@ -45,7 +45,7 @@ namespace Parser {
 | 
			
		||||
            switch (current.toktype) {
 | 
			
		||||
                case NUMBER: {
 | 
			
		||||
                    long double v = stoul(current.toktext);
 | 
			
		||||
                    if (i > 0 && lexed[i - 1].toktype == HYPHEN) v = -v;
 | 
			
		||||
                    if (i != 0 && lexed[i - 1].toktype == HYPHEN) v = -v;
 | 
			
		||||
                    types::Integer::precision_type p = 0;
 | 
			
		||||
                    if (nextAre({DOT, NUMBER})) {
 | 
			
		||||
                        i += 2;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user