File tree 2 files changed +9
-9
lines changed
2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 1
1
/* *****************************************************************************
2
2
*
3
- * Copyright 2021 Nikolay Shaplov (Postgres Professional)
3
+ * Copyright 2021-2023 Nikolay Shaplov (Postgres Professional)
4
4
*
5
5
* Licensed under the Apache License, Version 2.0 (the "License");
6
6
* you may not use this file except in compliance with the License.
24
24
#include " stamp.h"
25
25
26
26
27
- Blob::Blob (char * data_in, int size_in)
27
+ Blob::Blob (char * data_in, size_t size_in)
28
28
{
29
29
data = data_in;
30
30
size = size_in;
@@ -42,7 +42,7 @@ Blob::isEmpty ()
42
42
void
43
43
Blob::Dump ()
44
44
{
45
- int length = end - begin +1 ;
45
+ size_t length = end - begin +1 ;
46
46
hexdump (data + begin, length);
47
47
}
48
48
Original file line number Diff line number Diff line change 1
1
/* *****************************************************************************
2
2
*
3
- * Copyright 2021 Nikolay Shaplov (Postgres Professional)
3
+ * Copyright 2021-2023 Nikolay Shaplov (Postgres Professional)
4
4
*
5
5
* Licensed under the Apache License, Version 2.0 (the "License");
6
6
* you may not use this file except in compliance with the License.
@@ -30,11 +30,11 @@ class Blob
30
30
{
31
31
protected:
32
32
char * data;
33
- int size;
34
- int begin;
35
- int end;
33
+ size_t size;
34
+ size_t begin;
35
+ size_t end;
36
36
public:
37
- Blob (char * data, int size);
37
+ Blob (char * data, size_t size);
38
38
bool isEmpty ();
39
39
size_t Size ();
40
40
void Dump ();
@@ -55,4 +55,4 @@ class NotImplemented /*An exeption */
55
55
56
56
};
57
57
58
- #endif /* BLOB_H*/
58
+ #endif /* BLOB_H*/
You can’t perform that action at this time.
0 commit comments