Hello community, here is the log from the commit of package gnome-calculator for openSUSE:Factory checked in at 2017-02-19 00:40:02 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/gnome-calculator (Old) and /work/SRC/openSUSE:Factory/.gnome-calculator.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "gnome-calculator" Changes: -------- --- /work/SRC/openSUSE:Factory/gnome-calculator/gnome-calculator.changes 2016-11-12 14:48:15.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.gnome-calculator.new/gnome-calculator.changes 2017-02-19 00:40:04.192543945 +0100 @@ -1,0 +2,6 @@ +Mon Feb 13 21:29:39 UTC 2017 - zaitor@opensuse.org + +- Update to version 3.22.3: + + Complex exponentiation fixes (lp#1566513). + +------------------------------------------------------------------- Old: ---- gnome-calculator-3.22.2.tar.xz New: ---- gnome-calculator-3.22.3.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ gnome-calculator.spec ++++++ --- /var/tmp/diff_new_pack.ST0JDi/_old 2017-02-19 00:40:05.296388677 +0100 +++ /var/tmp/diff_new_pack.ST0JDi/_new 2017-02-19 00:40:05.300388114 +0100 @@ -1,7 +1,7 @@ # # spec file for package gnome-calculator # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: gnome-calculator -Version: 3.22.2 +Version: 3.22.3 Release: 0 Summary: A GNOME Calculator Application License: GPL-3.0+ ++++++ gnome-calculator-3.22.2.tar.xz -> gnome-calculator-3.22.3.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gnome-calculator-3.22.2/NEWS new/gnome-calculator-3.22.3/NEWS --- old/gnome-calculator-3.22.2/NEWS 2016-11-07 22:36:52.000000000 +0100 +++ new/gnome-calculator-3.22.3/NEWS 2017-02-13 21:55:47.000000000 +0100 @@ -1,3 +1,6 @@ +Overview of changes in gnome-calculator 3.22.3 + * Complex exponentiation fixes lp#1566513 (Robert Roth) + Overview of changes in gnome-calculator 3.22.2 * Fixed conversion unit switch (Robert Roth) * Fixed first expression with parentheses (Robert Roth) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gnome-calculator-3.22.2/configure new/gnome-calculator-3.22.3/configure --- old/gnome-calculator-3.22.2/configure 2016-11-07 22:37:46.000000000 +0100 +++ new/gnome-calculator-3.22.3/configure 2017-02-13 21:56:16.000000000 +0100 @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for gnome-calculator 3.22.2. +# Generated by GNU Autoconf 2.69 for gnome-calculator 3.22.3. # # # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. @@ -647,8 +647,8 @@ # Identity of this package. PACKAGE_NAME='gnome-calculator' PACKAGE_TARNAME='gnome-calculator' -PACKAGE_VERSION='3.22.2' -PACKAGE_STRING='gnome-calculator 3.22.2' +PACKAGE_VERSION='3.22.3' +PACKAGE_STRING='gnome-calculator 3.22.3' PACKAGE_BUGREPORT='' PACKAGE_URL='' @@ -1454,7 +1454,7 @@ # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures gnome-calculator 3.22.2 to adapt to many kinds of systems. +\`configure' configures gnome-calculator 3.22.3 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1525,7 +1525,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of gnome-calculator 3.22.2:";; + short | recursive ) echo "Configuration of gnome-calculator 3.22.3:";; esac cat <<\_ACEOF @@ -1667,7 +1667,7 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -gnome-calculator configure 3.22.2 +gnome-calculator configure 3.22.3 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. @@ -2032,7 +2032,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by gnome-calculator $as_me 3.22.2, which was +It was created by gnome-calculator $as_me 3.22.3, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ @@ -2896,7 +2896,7 @@ # Define the identity of the package. PACKAGE='gnome-calculator' - VERSION='3.22.2' + VERSION='3.22.3' cat >>confdefs.h <<_ACEOF @@ -14538,7 +14538,7 @@ # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by gnome-calculator $as_me 3.22.2, which was +This file was extended by gnome-calculator $as_me 3.22.3, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -14595,7 +14595,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -gnome-calculator config.status 3.22.2 +gnome-calculator config.status 3.22.3 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gnome-calculator-3.22.2/configure.ac new/gnome-calculator-3.22.3/configure.ac --- old/gnome-calculator-3.22.2/configure.ac 2016-11-07 22:36:59.000000000 +0100 +++ new/gnome-calculator-3.22.3/configure.ac 2017-02-13 21:55:50.000000000 +0100 @@ -1,6 +1,6 @@ dnl Process this file with autoconf to produce a configure script. -AC_INIT([gnome-calculator], [3.22.2]) +AC_INIT([gnome-calculator], [3.22.3]) AC_CONFIG_MACRO_DIR([m4]) AM_INIT_AUTOMAKE([1.11 no-dist-gzip dist-xz foreign]) AM_SILENT_RULES([yes]) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gnome-calculator-3.22.2/lib/currency.c new/gnome-calculator-3.22.3/lib/currency.c --- old/gnome-calculator-3.22.2/lib/currency.c 2016-11-07 22:37:54.000000000 +0100 +++ new/gnome-calculator-3.22.3/lib/currency.c 2017-02-13 21:56:20.000000000 +0100 @@ -1,4 +1,4 @@ -/* currency.c generated by valac 0.34.2, the Vala compiler +/* currency.c generated by valac 0.34.4, the Vala compiler * generated from currency.vala, do not modify */ /* diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gnome-calculator-3.22.2/lib/equation-lexer.c new/gnome-calculator-3.22.3/lib/equation-lexer.c --- old/gnome-calculator-3.22.2/lib/equation-lexer.c 2016-10-31 00:26:41.000000000 +0100 +++ new/gnome-calculator-3.22.3/lib/equation-lexer.c 2017-02-06 20:10:33.000000000 +0100 @@ -1,4 +1,4 @@ -/* equation-lexer.c generated by valac 0.34.2, the Vala compiler +/* equation-lexer.c generated by valac 0.34.4, the Vala compiler * generated from equation-lexer.vala, do not modify */ /* diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gnome-calculator-3.22.2/lib/equation-parser.c new/gnome-calculator-3.22.3/lib/equation-parser.c --- old/gnome-calculator-3.22.2/lib/equation-parser.c 2016-11-07 22:37:54.000000000 +0100 +++ new/gnome-calculator-3.22.3/lib/equation-parser.c 2017-02-13 21:56:21.000000000 +0100 @@ -1,4 +1,4 @@ -/* equation-parser.c generated by valac 0.34.2, the Vala compiler +/* equation-parser.c generated by valac 0.34.4, the Vala compiler * generated from equation-parser.vala, do not modify */ /* diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gnome-calculator-3.22.2/lib/equation.c new/gnome-calculator-3.22.3/lib/equation.c --- old/gnome-calculator-3.22.2/lib/equation.c 2016-10-31 00:26:41.000000000 +0100 +++ new/gnome-calculator-3.22.3/lib/equation.c 2017-02-06 20:10:33.000000000 +0100 @@ -1,4 +1,4 @@ -/* equation.c generated by valac 0.34.2, the Vala compiler +/* equation.c generated by valac 0.34.4, the Vala compiler * generated from equation.vala, do not modify */ /* diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gnome-calculator-3.22.2/lib/financial.c new/gnome-calculator-3.22.3/lib/financial.c --- old/gnome-calculator-3.22.2/lib/financial.c 2016-11-07 22:37:54.000000000 +0100 +++ new/gnome-calculator-3.22.3/lib/financial.c 2017-02-13 21:56:21.000000000 +0100 @@ -1,4 +1,4 @@ -/* financial.c generated by valac 0.34.2, the Vala compiler +/* financial.c generated by valac 0.34.4, the Vala compiler * generated from financial.vala, do not modify */ /* diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gnome-calculator-3.22.2/lib/function-manager.c new/gnome-calculator-3.22.3/lib/function-manager.c --- old/gnome-calculator-3.22.2/lib/function-manager.c 2016-11-07 22:37:54.000000000 +0100 +++ new/gnome-calculator-3.22.3/lib/function-manager.c 2017-02-13 21:56:21.000000000 +0100 @@ -1,4 +1,4 @@ -/* function-manager.c generated by valac 0.34.2, the Vala compiler +/* function-manager.c generated by valac 0.34.4, the Vala compiler * generated from function-manager.vala, do not modify */ /* diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gnome-calculator-3.22.2/lib/libcalculator.h new/gnome-calculator-3.22.3/lib/libcalculator.h --- old/gnome-calculator-3.22.2/lib/libcalculator.h 2016-11-07 22:37:54.000000000 +0100 +++ new/gnome-calculator-3.22.3/lib/libcalculator.h 2017-02-13 21:56:21.000000000 +0100 @@ -1,4 +1,4 @@ -/* libcalculator.h generated by valac 0.34.2, the Vala compiler, do not modify */ +/* libcalculator.h generated by valac 0.34.4, the Vala compiler, do not modify */ #ifndef __LIBCALCULATOR_H__ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gnome-calculator-3.22.2/lib/libcalculator.vapi new/gnome-calculator-3.22.3/lib/libcalculator.vapi --- old/gnome-calculator-3.22.2/lib/libcalculator.vapi 2016-11-07 22:37:54.000000000 +0100 +++ new/gnome-calculator-3.22.3/lib/libcalculator.vapi 2017-02-13 21:56:21.000000000 +0100 @@ -1,4 +1,4 @@ -/* libcalculator.vapi generated by valac 0.34.2, do not modify. */ +/* libcalculator.vapi generated by valac 0.34.4, do not modify. */ [CCode (cheader_filename = "libcalculator.h")] public enum ErrorCode { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gnome-calculator-3.22.2/lib/math-equation.c new/gnome-calculator-3.22.3/lib/math-equation.c --- old/gnome-calculator-3.22.2/lib/math-equation.c 2016-11-07 22:37:54.000000000 +0100 +++ new/gnome-calculator-3.22.3/lib/math-equation.c 2017-02-13 21:56:21.000000000 +0100 @@ -1,4 +1,4 @@ -/* math-equation.c generated by valac 0.34.2, the Vala compiler +/* math-equation.c generated by valac 0.34.4, the Vala compiler * generated from math-equation.vala, do not modify */ /* diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gnome-calculator-3.22.2/lib/math-function.c new/gnome-calculator-3.22.3/lib/math-function.c --- old/gnome-calculator-3.22.2/lib/math-function.c 2016-10-31 00:26:42.000000000 +0100 +++ new/gnome-calculator-3.22.3/lib/math-function.c 2017-02-06 20:10:33.000000000 +0100 @@ -1,4 +1,4 @@ -/* math-function.c generated by valac 0.34.2, the Vala compiler +/* math-function.c generated by valac 0.34.4, the Vala compiler * generated from math-function.vala, do not modify */ /* diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gnome-calculator-3.22.2/lib/math-variables.c new/gnome-calculator-3.22.3/lib/math-variables.c --- old/gnome-calculator-3.22.2/lib/math-variables.c 2016-11-07 22:37:54.000000000 +0100 +++ new/gnome-calculator-3.22.3/lib/math-variables.c 2017-02-13 21:56:21.000000000 +0100 @@ -1,4 +1,4 @@ -/* math-variables.c generated by valac 0.34.2, the Vala compiler +/* math-variables.c generated by valac 0.34.4, the Vala compiler * generated from math-variables.vala, do not modify */ /* diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gnome-calculator-3.22.2/lib/number.c new/gnome-calculator-3.22.3/lib/number.c --- old/gnome-calculator-3.22.2/lib/number.c 2016-11-07 22:37:54.000000000 +0100 +++ new/gnome-calculator-3.22.3/lib/number.c 2017-02-13 21:56:21.000000000 +0100 @@ -1,4 +1,4 @@ -/* number.c generated by valac 0.34.2, the Vala compiler +/* number.c generated by valac 0.34.4, the Vala compiler * generated from number.vala, do not modify */ /* @@ -1486,29 +1486,30 @@ gboolean _tmp17_ = FALSE; Number* _tmp22_ = NULL; gboolean _tmp23_ = FALSE; + gboolean _tmp36_ = FALSE; Number* t = NULL; Number* t2 = NULL; - Number* _tmp36_ = NULL; - gboolean _tmp37_ = FALSE; + Number* _tmp39_ = NULL; + gboolean _tmp40_ = FALSE; __mpfr_struct tmp = {0}; - gulong _tmp44_ = 0UL; - gulong _tmp45_ = 0UL; - Number* _tmp46_ = NULL; - __mpfr_struct _tmp47_ = {0}; - Number* _tmp48_ = NULL; - __mpfr_struct _tmp49_ = {0}; - Number* z = NULL; + gulong _tmp47_ = 0UL; + gulong _tmp48_ = 0UL; + Number* _tmp49_ = NULL; __mpfr_struct _tmp50_ = {0}; Number* _tmp51_ = NULL; - __mpfr_struct tmp2 = {0}; - Number* _tmp52_ = NULL; + __mpfr_struct _tmp52_ = {0}; + Number* z = NULL; __mpfr_struct _tmp53_ = {0}; - gulong _tmp54_ = 0UL; - gulong _tmp55_ = 0UL; - Number* _tmp56_ = NULL; - __mpfr_struct _tmp57_ = {0}; - Number* _tmp58_ = NULL; - __mpfr_struct _tmp59_ = {0}; + Number* _tmp54_ = NULL; + __mpfr_struct tmp2 = {0}; + Number* _tmp55_ = NULL; + __mpfr_struct _tmp56_ = {0}; + gulong _tmp57_ = 0UL; + gulong _tmp58_ = 0UL; + Number* _tmp59_ = NULL; + __mpfr_struct _tmp60_ = {0}; + Number* _tmp61_ = NULL; + __mpfr_struct _tmp62_ = {0}; g_return_val_if_fail (self != NULL, NULL); g_return_val_if_fail (y != NULL, NULL); _tmp1_ = number_is_zero (self); @@ -1619,55 +1620,64 @@ } _g_object_unref0 (reciprocal); } - _tmp36_ = y; - _tmp37_ = number_is_negative (_tmp36_); - if (_tmp37_) { + _tmp36_ = number_is_complex (self); + if (_tmp36_) { + Number* _tmp37_ = NULL; Number* _tmp38_ = NULL; - Number* _tmp39_ = NULL; - Number* _tmp40_ = NULL; - _tmp38_ = number_reciprocal (self); - _g_object_unref0 (t); - t = _tmp38_; - _tmp39_ = y; - _tmp40_ = number_invert_sign (_tmp39_); - _g_object_unref0 (t2); - t2 = _tmp40_; - } else { + _tmp37_ = y; + _tmp38_ = number_pwr (self, _tmp37_); + result = _tmp38_; + return result; + } + _tmp39_ = y; + _tmp40_ = number_is_negative (_tmp39_); + if (_tmp40_) { Number* _tmp41_ = NULL; Number* _tmp42_ = NULL; Number* _tmp43_ = NULL; - _tmp41_ = _g_object_ref0 (self); + _tmp41_ = number_reciprocal (self); _g_object_unref0 (t); t = _tmp41_; _tmp42_ = y; - _tmp43_ = _g_object_ref0 (_tmp42_); + _tmp43_ = number_invert_sign (_tmp42_); _g_object_unref0 (t2); t2 = _tmp43_; + } else { + Number* _tmp44_ = NULL; + Number* _tmp45_ = NULL; + Number* _tmp46_ = NULL; + _tmp44_ = _g_object_ref0 (self); + _g_object_unref0 (t); + t = _tmp44_; + _tmp45_ = y; + _tmp46_ = _g_object_ref0 (_tmp45_); + _g_object_unref0 (t2); + t2 = _tmp46_; } - _tmp44_ = number_get_precision (); - _tmp45_ = _tmp44_; - mpfr_init2 (&tmp, (mpfr_prec_t) _tmp45_); - _tmp46_ = t; - _tmp47_ = _tmp46_->priv->_re_num; - _tmp48_ = t2; - _tmp49_ = _tmp48_->priv->_re_num; - mpfr_pow (&tmp, &_tmp47_, &_tmp49_, MPFR_RNDN); - _tmp50_ = tmp; - _tmp51_ = number_new_mpfloat (&_tmp50_); - z = _tmp51_; - _tmp52_ = z; - _tmp53_ = _tmp52_->priv->_im_num; - tmp2 = _tmp53_; + _tmp47_ = number_get_precision (); + _tmp48_ = _tmp47_; + mpfr_init2 (&tmp, (mpfr_prec_t) _tmp48_); + _tmp49_ = t; + _tmp50_ = _tmp49_->priv->_re_num; + _tmp51_ = t2; + _tmp52_ = _tmp51_->priv->_re_num; + mpfr_pow (&tmp, &_tmp50_, &_tmp52_, MPFR_RNDN); + _tmp53_ = tmp; + _tmp54_ = number_new_mpfloat (&_tmp53_); + z = _tmp54_; + _tmp55_ = z; + _tmp56_ = _tmp55_->priv->_im_num; + tmp2 = _tmp56_; mpfr_clear (&tmp2); - _tmp54_ = number_get_precision (); - _tmp55_ = _tmp54_; - mpfr_init2 (&tmp, (mpfr_prec_t) _tmp55_); - _tmp56_ = t; - _tmp57_ = _tmp56_->priv->_im_num; - mpfr_set (&tmp, &_tmp57_, MPFR_RNDN); - _tmp58_ = z; - _tmp59_ = tmp; - number_set_im_num (_tmp58_, &_tmp59_); + _tmp57_ = number_get_precision (); + _tmp58_ = _tmp57_; + mpfr_init2 (&tmp, (mpfr_prec_t) _tmp58_); + _tmp59_ = t; + _tmp60_ = _tmp59_->priv->_im_num; + mpfr_set (&tmp, &_tmp60_, MPFR_RNDN); + _tmp61_ = z; + _tmp62_ = tmp; + number_set_im_num (_tmp61_, &_tmp62_); result = z; _g_object_unref0 (t2); _g_object_unref0 (t); @@ -1681,26 +1691,27 @@ gboolean _tmp1_ = FALSE; gboolean _tmp7_ = FALSE; gboolean _tmp8_ = FALSE; + gboolean _tmp14_ = FALSE; Number* t = NULL; - gint64 _tmp14_ = 0LL; + gint64 _tmp19_ = 0LL; __mpfr_struct tmp = {0}; - gulong _tmp18_ = 0UL; - gulong _tmp19_ = 0UL; - Number* _tmp20_ = NULL; - __mpfr_struct _tmp21_ = {0}; - gint64 _tmp22_ = 0LL; - Number* z = NULL; - __mpfr_struct _tmp23_ = {0}; - Number* _tmp24_ = NULL; - __mpfr_struct tmp2 = {0}; + gulong _tmp23_ = 0UL; + gulong _tmp24_ = 0UL; Number* _tmp25_ = NULL; __mpfr_struct _tmp26_ = {0}; - gulong _tmp27_ = 0UL; - gulong _tmp28_ = 0UL; + gint64 _tmp27_ = 0LL; + Number* z = NULL; + __mpfr_struct _tmp28_ = {0}; Number* _tmp29_ = NULL; - __mpfr_struct _tmp30_ = {0}; - Number* _tmp31_ = NULL; - __mpfr_struct _tmp32_ = {0}; + __mpfr_struct tmp2 = {0}; + Number* _tmp30_ = NULL; + __mpfr_struct _tmp31_ = {0}; + gulong _tmp32_ = 0UL; + gulong _tmp33_ = 0UL; + Number* _tmp34_ = NULL; + __mpfr_struct _tmp35_ = {0}; + Number* _tmp36_ = NULL; + __mpfr_struct _tmp37_ = {0}; g_return_val_if_fail (self != NULL, NULL); _tmp1_ = number_is_zero (self); if (_tmp1_) { @@ -1744,44 +1755,60 @@ result = _tmp13_; return result; } - _tmp14_ = n; - if (_tmp14_ < ((gint64) 0)) { - Number* _tmp15_ = NULL; - gint64 _tmp16_ = 0LL; - _tmp15_ = number_reciprocal (self); + _tmp14_ = number_is_complex (self); + if (_tmp14_) { + Number* y = NULL; + gint64 _tmp15_ = 0LL; + Number* _tmp16_ = NULL; + Number* _tmp17_ = NULL; + Number* _tmp18_ = NULL; + _tmp15_ = n; + _tmp16_ = number_new_integer (_tmp15_); + y = _tmp16_; + _tmp17_ = y; + _tmp18_ = number_pwr (self, _tmp17_); + result = _tmp18_; + _g_object_unref0 (y); + return result; + } + _tmp19_ = n; + if (_tmp19_ < ((gint64) 0)) { + Number* _tmp20_ = NULL; + gint64 _tmp21_ = 0LL; + _tmp20_ = number_reciprocal (self); _g_object_unref0 (t); - t = _tmp15_; - _tmp16_ = n; - n = -_tmp16_; + t = _tmp20_; + _tmp21_ = n; + n = -_tmp21_; } else { - Number* _tmp17_ = NULL; - _tmp17_ = _g_object_ref0 (self); + Number* _tmp22_ = NULL; + _tmp22_ = _g_object_ref0 (self); _g_object_unref0 (t); - t = _tmp17_; + t = _tmp22_; } - _tmp18_ = number_get_precision (); - _tmp19_ = _tmp18_; - mpfr_init2 (&tmp, (mpfr_prec_t) _tmp19_); - _tmp20_ = t; - _tmp21_ = _tmp20_->priv->_re_num; - _tmp22_ = n; - mpfr_pow_si (&tmp, &_tmp21_, (glong) _tmp22_, MPFR_RNDN); - _tmp23_ = tmp; - _tmp24_ = number_new_mpfloat (&_tmp23_); - z = _tmp24_; - _tmp25_ = z; - _tmp26_ = _tmp25_->priv->_im_num; - tmp2 = _tmp26_; + _tmp23_ = number_get_precision (); + _tmp24_ = _tmp23_; + mpfr_init2 (&tmp, (mpfr_prec_t) _tmp24_); + _tmp25_ = t; + _tmp26_ = _tmp25_->priv->_re_num; + _tmp27_ = n; + mpfr_pow_si (&tmp, &_tmp26_, (glong) _tmp27_, MPFR_RNDN); + _tmp28_ = tmp; + _tmp29_ = number_new_mpfloat (&_tmp28_); + z = _tmp29_; + _tmp30_ = z; + _tmp31_ = _tmp30_->priv->_im_num; + tmp2 = _tmp31_; mpfr_clear (&tmp2); - _tmp27_ = number_get_precision (); - _tmp28_ = _tmp27_; - mpfr_init2 (&tmp, (mpfr_prec_t) _tmp28_); - _tmp29_ = t; - _tmp30_ = _tmp29_->priv->_im_num; - mpfr_set (&tmp, &_tmp30_, MPFR_RNDN); - _tmp31_ = z; - _tmp32_ = tmp; - number_set_im_num (_tmp31_, &_tmp32_); + _tmp32_ = number_get_precision (); + _tmp33_ = _tmp32_; + mpfr_init2 (&tmp, (mpfr_prec_t) _tmp33_); + _tmp34_ = t; + _tmp35_ = _tmp34_->priv->_im_num; + mpfr_set (&tmp, &_tmp35_, MPFR_RNDN); + _tmp36_ = z; + _tmp37_ = tmp; + number_set_im_num (_tmp36_, &_tmp37_); result = z; _g_object_unref0 (t); return result; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gnome-calculator-3.22.2/lib/number.vala new/gnome-calculator-3.22.3/lib/number.vala --- old/gnome-calculator-3.22.2/lib/number.vala 2016-11-07 22:33:29.000000000 +0100 +++ new/gnome-calculator-3.22.3/lib/number.vala 2017-02-13 21:53:02.000000000 +0100 @@ -513,6 +513,9 @@ return pwr (y); } + if (is_complex ()) + return pwr (y); + Number t; Number t2; if (y.is_negative ()) @@ -556,6 +559,12 @@ return new Number.integer (0); } + if (is_complex ()) + { + var y = new Number.integer (n); + return pwr (y); + } + Number t; if (n < 0) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gnome-calculator-3.22.2/lib/serializer.c new/gnome-calculator-3.22.3/lib/serializer.c --- old/gnome-calculator-3.22.2/lib/serializer.c 2016-11-07 22:37:54.000000000 +0100 +++ new/gnome-calculator-3.22.3/lib/serializer.c 2017-02-13 21:56:21.000000000 +0100 @@ -1,4 +1,4 @@ -/* serializer.c generated by valac 0.34.2, the Vala compiler +/* serializer.c generated by valac 0.34.4, the Vala compiler * generated from serializer.vala, do not modify */ /* diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gnome-calculator-3.22.2/lib/unit.c new/gnome-calculator-3.22.3/lib/unit.c --- old/gnome-calculator-3.22.2/lib/unit.c 2016-10-31 00:26:42.000000000 +0100 +++ new/gnome-calculator-3.22.3/lib/unit.c 2017-02-13 21:56:21.000000000 +0100 @@ -1,4 +1,4 @@ -/* unit.c generated by valac 0.34.2, the Vala compiler +/* unit.c generated by valac 0.34.4, the Vala compiler * generated from unit.vala, do not modify */ /* diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gnome-calculator-3.22.2/search-provider/search-provider.c new/gnome-calculator-3.22.3/search-provider/search-provider.c --- old/gnome-calculator-3.22.2/search-provider/search-provider.c 2016-09-17 04:58:20.000000000 +0200 +++ new/gnome-calculator-3.22.3/search-provider/search-provider.c 2017-02-06 20:10:51.000000000 +0100 @@ -1,4 +1,4 @@ -/* search-provider.c generated by valac 0.32.1, the Vala compiler +/* search-provider.c generated by valac 0.34.4, the Vala compiler * generated from search-provider.vala, do not modify */ /* -*- Mode: vala; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gnome-calculator-3.22.2/src/gcalccmd.c new/gnome-calculator-3.22.3/src/gcalccmd.c --- old/gnome-calculator-3.22.2/src/gcalccmd.c 2016-09-25 04:28:32.000000000 +0200 +++ new/gnome-calculator-3.22.3/src/gcalccmd.c 2017-02-13 21:56:36.000000000 +0100 @@ -1,4 +1,4 @@ -/* gcalccmd.c generated by valac 0.32.1, the Vala compiler +/* gcalccmd.c generated by valac 0.34.4, the Vala compiler * generated from gcalccmd.vala, do not modify */ /* diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gnome-calculator-3.22.2/src/gnome-calculator.c new/gnome-calculator-3.22.3/src/gnome-calculator.c --- old/gnome-calculator-3.22.2/src/gnome-calculator.c 2016-11-07 22:38:08.000000000 +0100 +++ new/gnome-calculator-3.22.3/src/gnome-calculator.c 2017-02-13 21:56:32.000000000 +0100 @@ -1,4 +1,4 @@ -/* gnome-calculator.c generated by valac 0.34.2, the Vala compiler +/* gnome-calculator.c generated by valac 0.34.4, the Vala compiler * generated from gnome-calculator.vala, do not modify */ /* diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gnome-calculator-3.22.2/src/math-buttons.c new/gnome-calculator-3.22.3/src/math-buttons.c --- old/gnome-calculator-3.22.2/src/math-buttons.c 2016-11-07 22:38:08.000000000 +0100 +++ new/gnome-calculator-3.22.3/src/math-buttons.c 2017-02-13 21:56:32.000000000 +0100 @@ -1,4 +1,4 @@ -/* math-buttons.c generated by valac 0.34.2, the Vala compiler +/* math-buttons.c generated by valac 0.34.4, the Vala compiler * generated from math-buttons.vala, do not modify */ /* diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gnome-calculator-3.22.2/src/math-converter.c new/gnome-calculator-3.22.3/src/math-converter.c --- old/gnome-calculator-3.22.2/src/math-converter.c 2016-11-07 22:38:08.000000000 +0100 +++ new/gnome-calculator-3.22.3/src/math-converter.c 2017-02-13 21:56:32.000000000 +0100 @@ -1,4 +1,4 @@ -/* math-converter.c generated by valac 0.34.2, the Vala compiler +/* math-converter.c generated by valac 0.34.4, the Vala compiler * generated from math-converter.vala, do not modify */ /* diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gnome-calculator-3.22.2/src/math-display.c new/gnome-calculator-3.22.3/src/math-display.c --- old/gnome-calculator-3.22.2/src/math-display.c 2016-11-07 22:38:08.000000000 +0100 +++ new/gnome-calculator-3.22.3/src/math-display.c 2017-02-13 21:56:32.000000000 +0100 @@ -1,4 +1,4 @@ -/* math-display.c generated by valac 0.34.2, the Vala compiler +/* math-display.c generated by valac 0.34.4, the Vala compiler * generated from math-display.vala, do not modify */ /* diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gnome-calculator-3.22.2/src/math-function-popup.c new/gnome-calculator-3.22.3/src/math-function-popup.c --- old/gnome-calculator-3.22.2/src/math-function-popup.c 2016-11-07 22:38:08.000000000 +0100 +++ new/gnome-calculator-3.22.3/src/math-function-popup.c 2017-02-13 21:56:32.000000000 +0100 @@ -1,4 +1,4 @@ -/* math-function-popup.c generated by valac 0.34.2, the Vala compiler +/* math-function-popup.c generated by valac 0.34.4, the Vala compiler * generated from math-function-popup.vala, do not modify */ /* diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gnome-calculator-3.22.2/src/math-history.c new/gnome-calculator-3.22.3/src/math-history.c --- old/gnome-calculator-3.22.2/src/math-history.c 2016-11-07 22:38:09.000000000 +0100 +++ new/gnome-calculator-3.22.3/src/math-history.c 2017-02-13 21:56:32.000000000 +0100 @@ -1,4 +1,4 @@ -/* math-history.c generated by valac 0.34.2, the Vala compiler +/* math-history.c generated by valac 0.34.4, the Vala compiler * generated from math-history.vala, do not modify */ /* diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gnome-calculator-3.22.2/src/math-preferences.c new/gnome-calculator-3.22.3/src/math-preferences.c --- old/gnome-calculator-3.22.2/src/math-preferences.c 2016-11-07 22:38:08.000000000 +0100 +++ new/gnome-calculator-3.22.3/src/math-preferences.c 2017-02-13 21:56:32.000000000 +0100 @@ -1,4 +1,4 @@ -/* math-preferences.c generated by valac 0.34.2, the Vala compiler +/* math-preferences.c generated by valac 0.34.4, the Vala compiler * generated from math-preferences.vala, do not modify */ /* diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gnome-calculator-3.22.2/src/math-variable-popup.c new/gnome-calculator-3.22.3/src/math-variable-popup.c --- old/gnome-calculator-3.22.2/src/math-variable-popup.c 2016-11-07 22:38:08.000000000 +0100 +++ new/gnome-calculator-3.22.3/src/math-variable-popup.c 2017-02-13 21:56:32.000000000 +0100 @@ -1,4 +1,4 @@ -/* math-variable-popup.c generated by valac 0.34.2, the Vala compiler +/* math-variable-popup.c generated by valac 0.34.4, the Vala compiler * generated from math-variable-popup.vala, do not modify */ /* diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gnome-calculator-3.22.2/src/math-window.c new/gnome-calculator-3.22.3/src/math-window.c --- old/gnome-calculator-3.22.2/src/math-window.c 2016-11-07 22:38:08.000000000 +0100 +++ new/gnome-calculator-3.22.3/src/math-window.c 2017-02-13 21:56:32.000000000 +0100 @@ -1,4 +1,4 @@ -/* math-window.c generated by valac 0.34.2, the Vala compiler +/* math-window.c generated by valac 0.34.4, the Vala compiler * generated from math-window.vala, do not modify */ /* diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gnome-calculator-3.22.2/tests/Makefile.in new/gnome-calculator-3.22.3/tests/Makefile.in --- old/gnome-calculator-3.22.2/tests/Makefile.in 2016-11-07 22:37:46.000000000 +0100 +++ new/gnome-calculator-3.22.3/tests/Makefile.in 2017-02-13 21:56:17.000000000 +0100 @@ -712,15 +712,6 @@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< -$(srcdir)/test-equation.c: $(srcdir)/test_equation_vala.stamp - @if test -f $@; then :; else rm -f $(srcdir)/test_equation_vala.stamp; fi - @if test -f $@; then :; else \ - $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/test_equation_vala.stamp; \ - fi -$(srcdir)/test_equation_vala.stamp: test-equation.vala - $(AM_V_at)rm -f $@ && echo stamp > $@-t - $(AM_V_VALAC)$(am__cd) $(srcdir) && $(VALAC) $(test_equation_VALAFLAGS) $(VALAFLAGS) -C test-equation.vala - $(AM_V_at)mv -f $@-t $@ $(srcdir)/test-serializer.c: $(srcdir)/test_serializer_vala.stamp @if test -f $@; then :; else rm -f $(srcdir)/test_serializer_vala.stamp; fi @if test -f $@; then :; else \ @@ -739,6 +730,15 @@ $(AM_V_at)rm -f $@ && echo stamp > $@-t $(AM_V_VALAC)$(am__cd) $(srcdir) && $(VALAC) $(test_number_VALAFLAGS) $(VALAFLAGS) -C test-number.vala $(AM_V_at)mv -f $@-t $@ +$(srcdir)/test-equation.c: $(srcdir)/test_equation_vala.stamp + @if test -f $@; then :; else rm -f $(srcdir)/test_equation_vala.stamp; fi + @if test -f $@; then :; else \ + $(MAKE) $(AM_MAKEFLAGS) $(srcdir)/test_equation_vala.stamp; \ + fi +$(srcdir)/test_equation_vala.stamp: test-equation.vala + $(AM_V_at)rm -f $@ && echo stamp > $@-t + $(AM_V_VALAC)$(am__cd) $(srcdir) && $(VALAC) $(test_equation_VALAFLAGS) $(VALAFLAGS) -C test-equation.vala + $(AM_V_at)mv -f $@-t $@ mostlyclean-libtool: -rm -f *.lo diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gnome-calculator-3.22.2/tests/test-equation.c new/gnome-calculator-3.22.3/tests/test-equation.c --- old/gnome-calculator-3.22.2/tests/test-equation.c 2016-11-07 22:39:23.000000000 +0100 +++ new/gnome-calculator-3.22.3/tests/test-equation.c 2017-02-13 21:56:38.000000000 +0100 @@ -1,4 +1,4 @@ -/* test-equation.c generated by valac 0.34.2, the Vala compiler +/* test-equation.c generated by valac 0.34.4, the Vala compiler * generated from test-equation.vala, do not modify */ /* diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gnome-calculator-3.22.2/tests/test-number.c new/gnome-calculator-3.22.3/tests/test-number.c --- old/gnome-calculator-3.22.2/tests/test-number.c 2016-11-07 22:39:22.000000000 +0100 +++ new/gnome-calculator-3.22.3/tests/test-number.c 2017-02-13 21:56:37.000000000 +0100 @@ -1,4 +1,4 @@ -/* test-number.c generated by valac 0.34.2, the Vala compiler +/* test-number.c generated by valac 0.34.4, the Vala compiler * generated from test-number.vala, do not modify */ /* diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gnome-calculator-3.22.2/tests/test-serializer.c new/gnome-calculator-3.22.3/tests/test-serializer.c --- old/gnome-calculator-3.22.2/tests/test-serializer.c 2016-11-07 22:39:24.000000000 +0100 +++ new/gnome-calculator-3.22.3/tests/test-serializer.c 2017-02-13 21:56:39.000000000 +0100 @@ -1,4 +1,4 @@ -/* test-serializer.c generated by valac 0.34.2, the Vala compiler +/* test-serializer.c generated by valac 0.34.4, the Vala compiler * generated from test-serializer.vala, do not modify */ /*