From 820669b01161fe58da74423981bd124b7a5c0898 Mon Sep 17 00:00:00 2001 From: Yuval Greenfield Date: Mon, 2 Aug 2021 08:50:11 -0700 Subject: [PATCH] math.fractions: make the numerator and denominator public (#11018) --- vlib/math/fractions/fraction.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vlib/math/fractions/fraction.v b/vlib/math/fractions/fraction.v index 2e0b7bda1f..69c8f6343a 100644 --- a/vlib/math/fractions/fraction.v +++ b/vlib/math/fractions/fraction.v @@ -15,9 +15,9 @@ import math.bits // 2. d cannot be set to zero. The factory function will panic. // 3. If provided d is negative, it will be made positive. n will change as well. struct Fraction { - n i64 - d i64 pub: + n i64 + d i64 is_reduced bool }