From 321afe0cd61fbb1c5c4d778fa7564584b46c548c Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 18 Nov 2019 16:25:59 +1100 Subject: Fix building on 32bit systems --- source/blender/draw/intern/draw_manager.h | 3 +++ source/blender/makesrna/intern/rna_depsgraph.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'source') 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); -- cgit v1.2.3