We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c392d3 commit e2341e4Copy full SHA for e2341e4
[refs]
@@ -1,2 +1,2 @@
1
---
2
-refs/heads/master: 35016d31470b653e86a8f39513e82c8d14b48ab2
+refs/heads/master: c61691110a521bc070ee792fc87919cb75bd97c5
trunk/src/rt/rust_shape.h
@@ -4,6 +4,11 @@
4
#ifndef RUST_SHAPE_H
5
#define RUST_SHAPE_H
6
7
+// Tell ISAAC to let go of max() and min() defines.
8
+#undef max
9
+#undef min
10
+
11
+#include <iostream>
12
#include "rust_internal.h"
13
14
// ISAAC pollutes our namespace.
@@ -128,7 +133,7 @@ struct size_align {
128
133
129
134
inline void add(size_t extra_size, size_t extra_align) {
130
135
size += extra_size;
131
- alignment = max(alignment, extra_align);
136
+ alignment = std::max(alignment, extra_align);
132
137
}
138
139
static inline size_align make(size_t in_size) {
0 commit comments