Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Compare Revisions
85d9915b8eaa586d5ec4a143eda11a895a574e7c...44810bb051267fc8ddeb3c5949a61e6faa19484b
Commits (2)
std::min() wasn't in scope when using gcc <shrug>
· e18b6e9c
Rob Swindell
authored
Mar 09, 2022
e18b6e9c
Remove unused variable
· 44810bb0
Rob Swindell
authored
Mar 09, 2022
44810bb0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/encode/pascal_types.hpp
src/encode/pascal_types.hpp
+2
-1
src/sbbs3/xtrn_sec.cpp
src/sbbs3/xtrn_sec.cpp
+0
-1
No files found.
src/encode/pascal_types.hpp
View file @
44810bb0
...
...
@@ -21,6 +21,7 @@
#include <climits>
#include <cstdint>
#include <algorithm> // std::min
#include "gen_defs.h"
#include "xpendian.h"
...
...
@@ -36,7 +37,7 @@ public:
}
void
operator
=
(
const
char
*
s
)
{
memset
(
buf
,
0
,
size
);
buf
[
0
]
=
(
uint8_t
)
min
(
size
,
strlen
(
s
));
buf
[
0
]
=
(
uint8_t
)
std
::
min
(
size
,
strlen
(
s
));
memcpy
(
buf
+
1
,
s
,
len
());
}
};
...
...
src/sbbs3/xtrn_sec.cpp
View file @
44810bb0
...
...
@@ -147,7 +147,6 @@ void sbbs_t::xtrndat(const char *name, const char *dropdir, uchar type, ulong tl
/* TODO: 16-bit i */
int16_t
i
;
int
file
;
uint16_t
w
;
int32_t
l
;
struct
tm
tm
;
struct
tm
tl
;
...
...