mirror of
https://github.com/gbdev/rgbds.git
synced 2026-10-06 04:05:38 +00:00
Consistently use UINT32_MAX, not -1, for uint32_t values
This commit is contained in:
1 parent
a8ec9228d4
commit
b18cfe6bdb
3 files changed
+3
-3
No files matched your search
+1
-1
@@ -162,7 +162,7 @@ bool yywrap() {
|
||||
// If the node is referenced outside this context, we can't edit it, so duplicate it
|
||||
if (context.fileInfo.use_count() > 1) {
|
||||
context.fileInfo = std::make_shared<FileStackNode>(*context.fileInfo);
|
||||
context.fileInfo->ID = -1; // The copy is not yet registered
|
||||
context.fileInfo->ID = UINT32_MAX; // The copy is not yet registered
|
||||
}
|
||||
|
||||
std::vector<uint32_t> &fileInfoIters = context.fileInfo->iters();
|
||||
|
||||
Reference in new issue
Block a user