Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
cs24-21fa
project05b
Commits
2f64e330
Commit
2f64e330
authored
4 years ago
by
Caleb C. Sander
Browse files
Options
Download
Email Patches
Plain Diff
Avoid UINT8_MAX constant
parent
e4ee8bbb
master
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/index_guesser.c
+1
-1
src/index_guesser.c
with
1 addition
and
1 deletion
+1
-1
src/index_guesser.c
View file @
2f64e330
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
#include "stage2.h"
#include "stage2.h"
const
size_t
MIN_CHOICE
=
1
;
const
size_t
MIN_CHOICE
=
1
;
const
size_t
MAX_CHOICE
=
UINT8_MAX
;
const
size_t
MAX_CHOICE
=
255
;
static
inline
page_t
*
init_pages
(
void
)
{
static
inline
page_t
*
init_pages
(
void
)
{
return
calloc
(
MAX_CHOICE
+
1
,
sizeof
(
page_t
));
return
calloc
(
MAX_CHOICE
+
1
,
sizeof
(
page_t
));
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help