mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 15:48:49 -05:00
Georg Horn's and my fixes to make it compile with 7.7
This commit is contained in:
parent
794d08a728
commit
34efa74a59
@ -252,19 +252,19 @@ CODE:
|
||||
switch (option & CURLINFO_TYPEMASK) {
|
||||
case CURLINFO_STRING: {
|
||||
char * value = (char *)SvPV(ST(2), PL_na);
|
||||
RETVAL = curl_getinfo(curl, option, &value);
|
||||
RETVAL = curl_easy_getinfo(curl, option, &value);
|
||||
sv_setpv(ST(2), value);
|
||||
break;
|
||||
}
|
||||
case CURLINFO_LONG: {
|
||||
long value = (long)SvIV(ST(2));
|
||||
RETVAL = curl_getinfo(curl, option, &value);
|
||||
RETVAL = curl_easy_getinfo(curl, option, &value);
|
||||
sv_setiv(ST(2), value);
|
||||
break;
|
||||
}
|
||||
case CURLINFO_DOUBLE: {
|
||||
double value = (double)SvNV(ST(2));
|
||||
RETVAL = curl_getinfo(curl, option, &value);
|
||||
RETVAL = curl_easy_getinfo(curl, option, &value);
|
||||
sv_setnv(ST(2), value);
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user