Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-11-18 08:25:59 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-11-18 08:25:59 +0300
commit321afe0cd61fbb1c5c4d778fa7564584b46c548c (patch)
treea86f213e4261a598cf93d198ac18e58ffda37dc9
parenteba4a4bd73ba7918fb98e21acf5fbfb4aa748a18 (diff)
Fix building on 32bit systems
-rw-r--r--source/blender/draw/intern/draw_manager.h3
-rw-r--r--source/blender/makesrna/intern/rna_depsgraph.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/draw/intern/draw_manager.h b/source/blender/draw/intern/draw_manager.h
index 709116c78e5..ce8155dc85f 100644
--- a/source/blender/draw/intern/draw_manager.h
+++ b/source/blender/draw/intern/draw_manager.h
@@ -409,7 +409,10 @@ typedef struct DRWCommandSmallChunk {
DRWCommand commands[6];
} DRWCommandSmallChunk;
+/* Only true for 64-bit platforms. */
+#ifdef __LP64__
BLI_STATIC_ASSERT_ALIGN(DRWCommandChunk, 16);
+#endif
/* ------------- DRAW DEBUG ------------ */
diff --git a/source/blender/makesrna/intern/rna_depsgraph.c b/source/blender/makesrna/intern/rna_depsgraph.c
index 2072b07ecb3..b45b1117c2e 100644
--- a/source/blender/makesrna/intern/rna_depsgraph.c
+++ b/source/blender/makesrna/intern/rna_depsgraph.c
@@ -255,7 +255,7 @@ static void rna_Depsgraph_debug_stats(Depsgraph *depsgraph, char *result)
DEG_stats_simple(depsgraph, &outer, &ops, &rels);
BLI_snprintf(result,
STATS_MAX_SIZE,
- "Approx %lu Operations, %lu Relations, %lu Outer Nodes",
+ "Approx %zu Operations, %zu Relations, %zu Outer Nodes",
ops,
rels,
outer);