aboutsummaryrefslogtreecommitdiffstats
path: root/libj2_j2i_divmod_j2i_to_j2i.c
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2026-05-17 14:28:21 +0200
committerMattias Andrée <m@maandree.se>2026-05-17 15:06:44 +0200
commitc77deb9313ee3c4ca9885191f5cb8e07d8d68ad3 (patch)
tree1de53628d7bffdac84992d8ae1e36d4bf0265c90 /libj2_j2i_divmod_j2i_to_j2i.c
parentFix usage of va_arg (diff)
downloadlibj2-c77deb9313ee3c4ca9885191f5cb8e07d8d68ad3.tar.gz
libj2-c77deb9313ee3c4ca9885191f5cb8e07d8d68ad3.tar.bz2
libj2-c77deb9313ee3c4ca9885191f5cb8e07d8d68ad3.tar.xz
Fix undefined behaviour
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'libj2_j2i_divmod_j2i_to_j2i.c')
-rw-r--r--libj2_j2i_divmod_j2i_to_j2i.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libj2_j2i_divmod_j2i_to_j2i.c b/libj2_j2i_divmod_j2i_to_j2i.c
index 1a55f41..ef46f97 100644
--- a/libj2_j2i_divmod_j2i_to_j2i.c
+++ b/libj2_j2i_divmod_j2i_to_j2i.c
@@ -383,7 +383,7 @@ check(const struct libj2_j2i *a, const struct libj2_j2i *b)
v.high = random_ju();
v.low = random_ju();
} while (!v.high && !v.low);
- b = &u;
+ b = &v;
}
check_manual(a, b, NULL, NULL);
}