Ensure token's integer value is printed properly on macOS and Linux
This commit is contained in:
		| @@ -279,7 +279,7 @@ void print_token(token_t token) { | ||||
|     printf("%15s, VALUE: %s", "TK_STR_VAL", token.value.string); | ||||
|     break; | ||||
|   case TK_INTEGER: | ||||
|     printf("%15s, VALUE: %ld", "TK_INTEGER", token.value.num_int); | ||||
|     printf("%15s, VALUE: %lld", "TK_INTEGER", (long long)token.value.num_int); | ||||
|     break; | ||||
|   case TK_DOUBLE: | ||||
|     printf("%15s, VALUE: %f", "TK_DOUBLE", token.value.num_frac); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user