Groups | Search | Server Info | Login | Register


Groups > perl.perl5.changes > #34425

[Perl/perl5] 83141f: grok_uint_by_base: Change parameter name

Newsgroups perl.perl5.changes
Path csiph.com!fu-berlin.de!bofh.it!nntp.perl.org
Xref csiph.com perl.perl5.changes:34425
Return-Path <noreply@github.com>
Mailing-List contact perl5-changes-help@perl.org; run by ezmlm
Delivered-To mailing list perl5-changes@perl.org
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=perl.org; h=date :from:to:message-id:subject:mime-version:content-type :content-transfer-encoding:list-unsubscribe:reply-to; s=dr1; bh= Vbut1lUCy+QCH4NCUjBLSdbxR24/a/QKLXUU3jiIUzA=; b=gqWLxKng36d5P+II Nq0p5RFaoU8uW/xQDDRnucCTHtAmPXpwGsKpQTZsOBL5dF1Sp5wHGRiH5Bv7D9s8 VrwVWctKo4dNdeSVOVNpOWZt9NsenUSy8xdqd8NImp9XzGxCwvIG9owrGsQPMyjO qY2GysaVpxclKPvcczAXC7S5GsnyS6kc5nvGqQSSIc/R5qs8KC06zo+otDgn5rhO remK0m8yda8Fi/Tk9HMraA3wcpFHKZkU/suzF+n2kv4R8n2/ArZMO10OsyUCcFcG mjDNXpWApje5ZfivzjkUqDQ7mfW8jcZNMccKp/z+ZGEs7JHzX3Lral2zqMvCfdln wRA5Tw==
Received (qmail 25138 invoked from network); 3 Mar 2026 15:50:05 -0000
Received from xx1.develooper.com (147.75.38.233) by x6.develooper.com with SMTP; 3 Mar 2026 15:50:05 -0000
Received from inbound-egress-11.mailchannels.net (inbound-egress-11.mailchannels.net [23.83.208.2]) by xx1.develooper.com (Postfix) with ESMTP id DA6FC7CF55 for <perl5-changes@perl.org>; Tue, 3 Mar 2026 07:50:04 -0800 (PST)
ARC-Seal i=1; a=rsa-sha256; d=mailchannels.net; s=arc-2022; cv=none; t=1772553002; b=cCoKPZ7CuJ9bJNIff4n17aUPfGkro78sdUhtevLKuMbHxX8MyIOeoePbI8Y45goIfM+E+f UPTq8mhij/q+u2vvo0DmxD0CLM2yXpZM/PcTGlIiYzDkBYR71kwZJyDCOCeMy0Kh3Y4oO9 xTuue77gypZfkEDDC4Ps+v99161AqbxJsBIk+Um/qhsLAq7vJoaJ81U7Wc1cXPmnxdKXn0 HERA7mbTEBYkGPUoXaBKcX+93jHgfP18YhqpHY2QA3rdDTcrAGozU3TekaaM0prLXkvh// w5IemvWoo0se7INfbuMmCGVoxu9VoH+MYEWSZBpeqtvJYizneBAPQt6JkMdUlg==
ARC-Message-Signature i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1772553002; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-unsubscribe: dkim-signature; bh=Vbut1lUCy+QCH4NCUjBLSdbxR24/a/QKLXUU3jiIUzA=; b=9fbb6aIH9T0uO7jHwgOKQWeN8oC3WiEpOwjHW7C9cOB579z5qdlAdnRNQck6wwtfAJe0y1 wvSWMCvpGp+AC8WGmM8z2esoMouvvolribixQR/v8l0LpUpgMkVe0yUvIf/ApWnFss2IVd Y/MTWw8qe3MRip6dPbk2z2qB+/8NywHckT1VWxRZ8Ac/j9MOlYD96aW8+NvSeNn78Lc2Oe KolNowvZxAtIMRkQrgGTSRbzJh906zDtf9UHd4o8RB3yQk/YxJSxeG6cluV1vyYa0sBrGO 7uhoqOijJE2qFXs+awvQP28k7vhVSMhVhAWQ8bIOgNjjk28oJPNOo4nERua17w==
ARC-Authentication-Results i=1; inbound-rspamd-5dd9f7d59-5xtvh; none
X-Message-ID PcII74Fo6ctZyWlRCn3TL209
Received from out-17.smtp.github.com (out-17.smtp.github.com [192.30.252.200]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.110.51.70 (trex/7.1.3); Tue, 03 Mar 2026 15:50:02 +0000
Authentication-Results inbound.mailchannels.net; spf=pass smtp.mailfrom=noreply@github.com; dkim=pass header.d=github.com; dmarc=pass (policy=reject; pct=100; status=pass); arc=none
Received-SPF pass (dmarc-service-79fbc8656b-czmb8: domain of github.com designates 192.30.252.200 as permitted sender) client-ip=192.30.252.200; envelope-from=noreply@github.com; helo=out-17.smtp.github.com;
Received from github.com (hubbernetes-node-3e69ef2.va3-iad.github.net [10.48.175.39]) by smtp.github.com (Postfix) with ESMTPA id EB4974ED51F for <perl5-changes@perl.org>; Tue, 3 Mar 2026 07:46:22 -0800 (PST)
Date Tue, 03 Mar 2026 07:46:22 -0800
To perl5-changes@perl.org
Message-ID <Perl/perl5/push/refs/heads/blead/746135-c3d324@github.com> (permalink)
Subject [Perl/perl5] 83141f: grok_uint_by_base: Change parameter name
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 7bit
X-GitHub-Recipient-Address perl5-changes@perl.org
X-Auto-Response-Suppress All
Original-From Karl Williamson <noreply@github.com>
Reply-To Karl Williamson <noreply@github.com>,
Approved news@nntp.perl.org
From perl5-changes@perl.org (Karl Williamson via perl5-changes)

Show key headers only | View raw


  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 83141f96c58a460f1cf6073fe96d68971f89ae53
      https://github.com/Perl/perl5/commit/83141f96c58a460f1cf6073fe96d68971f89ae53
  Author: Karl Williamson <khw@cpan.org>
  Date:   2026-03-03 (Tue, 03 Mar 2026)

  Changed paths:
    M embed.fnc
    M inline.h
    M numeric.c
    M proto.h

  Log Message:
  -----------
  grok_uint_by_base: Change parameter name

The old name 'result' is misleading.  What gets stored here is an
approximation.  Change to 'approximation'.


  Commit: c3d3248ca915de9378b137bf50cbffdff3a4184a
      https://github.com/Perl/perl5/commit/c3d3248ca915de9378b137bf50cbffdff3a4184a
  Author: Karl Williamson <khw@cpan.org>
  Date:   2026-03-03 (Tue, 03 Mar 2026)

  Changed paths:
    M numeric.c

  Log Message:
  -----------
  grok_uint_by_base: Avoid to-be-discarded work

The caller indicates if they want an approximation to an overflowing
value by passing a non-NULL pointer to where to store it.

It turns out that this function was calculating that approximation
and then discarding it if the pointer is NULL.

This commit changes to avoid that.  There already was code that
completed the parsing without doing the calculation.  This commit just
moves the block that set the return flags/did warnings to earlier, and
then uses the non-calculating code when no approximation is desired.


Compare: https://github.com/Perl/perl5/compare/746135fdef92...c3d3248ca915

To unsubscribe from these emails, change your notification settings at https://github.com/Perl/perl5/settings/notifications

Back to perl.perl5.changes | Previous | Next | Find similar


Thread

[Perl/perl5] 83141f: grok_uint_by_base: Change parameter name perl5-changes@perl.org (Karl Williamson via perl5-changes) - 2026-03-03 07:46 -0800

csiph-web