Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alex Henrie
graph-tool
Commits
a7d092aa
Commit
a7d092aa
authored
Feb 05, 2021
by
Alex Henrie
Browse files
Make magic numbers static
parent
b4daf8a8
Pipeline
#863
passed with stage
in 73 minutes and 25 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/graph/graph_io_binary.hh
View file @
a7d092aa
...
...
@@ -27,9 +27,9 @@
namespace
graph_tool
{
const
char
*
_magic
=
u8"⛾ gt"
;
size_t
_magic_length
=
6
;
const
uint8_t
_version
=
1
;
static
const
char
*
_magic
=
u8"⛾ gt"
;
static
const
size_t
_magic_length
=
6
;
static
const
uint8_t
_version
=
1
;
// deal with endianness
...
...
src/graph/inference/support/spence.cc
View file @
a7d092aa
...
...
@@ -64,7 +64,7 @@
#include
<cmath>
#include
<limits>
double
MACHEP
=
1.11022302462515654042E-16
;
/* 2**-53 */
static
const
double
MACHEP
=
1.11022302462515654042E-16
;
/* 2**-53 */
static
double
A
[
8
]
=
{
4.65128586073990045278E-5
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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