File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 11/* *****************************************************************************
22 *
3- * Copyright 2021 Nikolay Shaplov (Postgres Professional)
3+ * Copyright 2021-2023 Nikolay Shaplov (Postgres Professional)
44 *
55 * Licensed under the Apache License, Version 2.0 (the "License");
66 * you may not use this file except in compliance with the License.
2424#include " stamp.h"
2525
2626
27- Blob::Blob (char * data_in, int size_in)
27+ Blob::Blob (char * data_in, size_t size_in)
2828{
2929 data = data_in;
3030 size = size_in;
@@ -42,7 +42,7 @@ Blob::isEmpty ()
4242void
4343Blob::Dump ()
4444{
45- int length = end - begin +1 ;
45+ size_t length = end - begin +1 ;
4646 hexdump (data + begin, length);
4747}
4848
Original file line number Diff line number Diff line change 11/* *****************************************************************************
22 *
3- * Copyright 2021 Nikolay Shaplov (Postgres Professional)
3+ * Copyright 2021-2023 Nikolay Shaplov (Postgres Professional)
44 *
55 * Licensed under the Apache License, Version 2.0 (the "License");
66 * you may not use this file except in compliance with the License.
@@ -30,11 +30,11 @@ class Blob
3030{
3131 protected:
3232 char * data;
33- int size;
34- int begin;
35- int end;
33+ size_t size;
34+ size_t begin;
35+ size_t end;
3636 public:
37- Blob (char * data, int size);
37+ Blob (char * data, size_t size);
3838 bool isEmpty ();
3939 size_t Size ();
4040 void Dump ();
@@ -55,4 +55,4 @@ class NotImplemented /*An exeption */
5555
5656};
5757
58- #endif /* BLOB_H*/
58+ #endif /* BLOB_H*/
You can’t perform that action at this time.
0 commit comments