1
0
Fork 0
mirror of https://github.com/rubyjs/therubyracer synced 2023-03-27 23:21:42 -04:00

remove std:: namespace on sprintf() so that it compiles on linux

This commit is contained in:
Charles Lowell 2010-02-15 21:47:53 -06:00
parent c4b1c79448
commit e9539441cf

View file

@ -23,7 +23,7 @@ public:
#ifdef FIGURED_OUT_INT_ISSUES
const char* pushInt(int32_t value) {
char buffer[64];
std::sprintf(buffer, "%d", value);
sprintf(buffer, "%d", value);
convertedValue = buffer;
return convertedValue.c_str();
}
@ -31,14 +31,14 @@ public:
std::string pushInt(int64_t value) {
char buffer[64];
std::sprintf(buffer, "%lld", value);
sprintf(buffer, "%lld", value);
std::string convertedValue(buffer);
return convertedValue;
}
std::string pushDouble(double value) {
char buffer[64];
std::sprintf(buffer, "%g", value);
sprintf(buffer, "%g", value);
std::string convertedValue(buffer);
return convertedValue;
}