You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why do you think that only APPLE handles 64 bit variables?
Proese use this fix:
void ftplib::sprint_rest(char *buf, off64_t offset) {
#if sizeof(offset)>4
sprintf(buf,"REST %lld",offset);
#else
sprintf(buf,"REST %ld",offset);
#endif
}
or if you are paranoid enougs and absolutelly sure that thare does not exist 32 bit code on APPLE:
void ftplib::sprint_rest(char *buf, off64_t offset) {
#if defined(APPLE) || sizeof(offset)>4
sprintf(buf,"REST %lld",offset);
#else
sprintf(buf,"REST %ld",offset);
#endif
}
The text was updated successfully, but these errors were encountered:
Why do you think that only APPLE handles 64 bit variables?
Proese use this fix:
void ftplib::sprint_rest(char *buf, off64_t offset) {
#if sizeof(offset)>4
sprintf(buf,"REST %lld",offset);
#else
sprintf(buf,"REST %ld",offset);
#endif
}
or if you are paranoid enougs and absolutelly sure that thare does not exist 32 bit code on APPLE:
void ftplib::sprint_rest(char *buf, off64_t offset) {
#if defined(APPLE) || sizeof(offset)>4
sprintf(buf,"REST %lld",offset);
#else
sprintf(buf,"REST %ld",offset);
#endif
}
The text was updated successfully, but these errors were encountered: