use nullptr and float constants

This commit is contained in:
RichardTea
2021-01-27 10:56:57 +00:00
parent 150514fc8b
commit 48bcbbefdd
4 changed files with 17 additions and 18 deletions

View File

@@ -54,7 +54,7 @@ size_t DecodeBase64(const char *in, size_t inLength, uint8_t *&out) {
}
if (inLength < 4) {
out = 0;
out = nullptr;
return 0;
}

View File

@@ -107,7 +107,6 @@ public:
f(file) {}
~IOStream() {
fclose(f);
f = 0;
}
size_t Read(void *b, size_t sz, size_t n) { return fread(b, sz, n, f); }