Fixes compatibility with Borland C++Builder. Original patch by Josh
Kelley. Simplified by Zhanyong Wan.
This commit is contained in:
@@ -4349,7 +4349,7 @@ bool ShouldShard(const char* total_shards_env,
|
||||
// Parses the environment variable var as an Int32. If it is unset,
|
||||
// returns default_val. If it is not an Int32, prints an error
|
||||
// and aborts.
|
||||
Int32 Int32FromEnvOrDie(const char* const var, Int32 default_val) {
|
||||
Int32 Int32FromEnvOrDie(const char* var, Int32 default_val) {
|
||||
const char* str_val = posix::GetEnv(var);
|
||||
if (str_val == NULL) {
|
||||
return default_val;
|
||||
|
||||
Reference in New Issue
Block a user