From patchwork Sun Dec 29 18:25:43 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 182583 Delivered-To: patch@linaro.org Received: by 2002:a92:815a:0:0:0:0:0 with SMTP id e87csp5493501ild; Sun, 29 Dec 2019 10:26:27 -0800 (PST) X-Google-Smtp-Source: APXvYqxNTFPdsuC4dx91MvBj5x6CeQmBAhNALKpkDkWA4KvsECm58JCL8EQJhAs7SjJz5ucadrt7 X-Received: by 2002:a17:90a:f496:: with SMTP id bx22mr41598994pjb.101.1577643987402; Sun, 29 Dec 2019 10:26:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577643987; cv=none; d=google.com; s=arc-20160816; b=0y56cxrWzKHiqBjwCzYPEX0gAud8sx9EaKawwHL8KABtyPSa10pPiz41rr0mN2Wny5 fFkiHP8WVoVcUkUTG3Z3yqGzJJZ9htk/UJw+dV8qyFCK6vcHmy+TEGCHRrXAw4L5PbcH VKuDW+5WNEZcmpJEhK1KdiDsadRdIvaJcB6B7JEhykE0MNXaiPpyfvdRFP33s1C8bHaW CA5foO35BTWSZbu6fOxAV9SkTK36HuTN2HH6BGedsMZEnmD1KaQZ/DZ3jGGAje3OR/KE cB7Elh98ftg6FInJFiAmCnj+cm+3kcRI/PgdQtaZVGgmiMfK2xyJ2VF+qilaY1S6Le+s oP0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:delivered-to; bh=9BfDgCt1Mxwa2uGeRW0pbHk7RnBhLJbXbPHXSl/GHYY=; b=zSBHsquQ9qxS7Oi+t3fGhsQLMlA/HJfk3yuNloMA476F/0hjDfYBgwoiNZfWTjjOFU l7D+om4bRfL6Y0ZJJSkvbnrFDs4vydH/ZwuRbloVvezBRB5EUmKzsMi6C9hLOm+fnXPy 9fpl8TriMvyG2+59Xk9WuCU8e1mXWt71vzW4/vQ9pF/jruG5OGY+XZm2yFTVLfc0zWkZ FVCte4k680NMIFDkEBV90YwE3tN/rYp//WX3gtI0MmJkYmcReTdOrPMsNLT2reNacLu/ TCSbz2qOrPZb5NZEHYoFn7LatGHdilTxx/A82Xvw9lxYop/V6NPj6reZLBT0DdZ4OQ8n rdWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=JPLxGVSw; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id a20si38586884pgw.378.2019.12.29.10.26.27; Sun, 29 Dec 2019 10:26:27 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=JPLxGVSw; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id C156B7F832; Sun, 29 Dec 2019 18:26:14 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pf1-f195.google.com (mail-pf1-f195.google.com [209.85.210.195]) by mail.openembedded.org (Postfix) with ESMTP id C8E287F81E for ; Sun, 29 Dec 2019 18:25:51 +0000 (UTC) Received: by mail-pf1-f195.google.com with SMTP id z16so17266297pfk.0 for ; Sun, 29 Dec 2019 10:25:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=lbqYO6566wvNNsbZy5s3Wf5LMTpzQkODQYv12W/3Wl4=; b=JPLxGVSwRNNvfWu0DllaFieqNiQpJ1D3YtAjHtUJF+w5pFGKwJ9yBTtWpmccKLa/fX lifzy87ah76nTDfo6Tj+RIUQV/V+M9ZvxBsyni9bk+OYZGNtAgrDZWJ81g9F/6VyOR9e EfsRzHPaDTK3X9QRrDgyI/339gQUkhVdCFuMLDNOL0vC+4MBij74WOG2yi/1NX4UBLbl tyi9BxfPm651dCpd3cZJB2hn5+ak9h83dQQXnziq15SkwwsH9WmFSsRTPLvcje5F1z98 rSD4AkaTIyWhvFGP+u9mVIW4R01NsAanKg34tfjRN1aq294zL4xUSBAExU5zWpIyhAAS Z+Jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=lbqYO6566wvNNsbZy5s3Wf5LMTpzQkODQYv12W/3Wl4=; b=Csh2olekVJo5D3qMi9UaRvkOb1isua5hKHABz5i63IbBTW5jaDW5j4e1iZPPitjm9h MPi60g1xgZPQteKI7+fN03eJ2JtNa03ZiC0iCSwNosRzHPGC5e4Uq9cq0yoQmGNWV4Us swQZQSrQ6liSUF0SYnNTtAJt5UdLs0raipuuEfImuFn0L6TAtvqIejK1lHOeRM9TXJER rD/qtZASxO3dNtywsxudJAeZ1uRN4lqa2K/iXayX1ULSLAU+nvhP36qZUV8BULA6g0XT trQ3YZyoiU+0ZOmp4GO3pmMfkTdz08DHtXuGTBRN1i5xJydEF6Mna73pBMXATZ5C0xQK sRTA== X-Gm-Message-State: APjAAAXWXvYil1GdRm1TIYNXuuXv1cZwYcuesoH5VYwFc8e71DQawOb8 jcne0xHo9ppcPVi8wENh5Zcl5Pfa9ww= X-Received: by 2002:aa7:90cc:: with SMTP id k12mr44555826pfk.105.1577643952381; Sun, 29 Dec 2019 10:25:52 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9200:4e0::2f83]) by smtp.gmail.com with ESMTPSA id gc1sm21395010pjb.20.2019.12.29.10.25.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Dec 2019 10:25:52 -0800 (PST) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Sun, 29 Dec 2019 10:25:43 -0800 Message-Id: <20191229182544.16104-4-raj.khem@gmail.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191229182544.16104-1-raj.khem@gmail.com> References: <20191229182544.16104-1-raj.khem@gmail.com> MIME-Version: 1.0 Subject: [oe] [meta-networking][PATCH 4/5] ruli: Fix implicit conversion from 'unsigned int' to 'float' X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org Signed-off-by: Khem Raj --- .../ruli/files/float-conversion.patch | 19 +++++++++++++++++++ .../recipes-support/ruli/ruli_0.36.bb | 1 + 2 files changed, 20 insertions(+) create mode 100644 meta-networking/recipes-support/ruli/files/float-conversion.patch -- 2.24.1 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-networking/recipes-support/ruli/files/float-conversion.patch b/meta-networking/recipes-support/ruli/files/float-conversion.patch new file mode 100644 index 0000000000..999f23fc6a --- /dev/null +++ b/meta-networking/recipes-support/ruli/files/float-conversion.patch @@ -0,0 +1,19 @@ +clarify type conversion + +fixes +| ruli_rand.c:54:47: error: implicit conversion from 'unsigned int' to 'float' changes value from 4294967295 to 4294967296 [-Werror,-Wimplicit-int-float-conversion] +| + +Upstream-Status: Pending +Signed-off-by: Khem Raj +--- a/src/ruli_rand.c ++++ b/src/ruli_rand.c +@@ -51,7 +51,7 @@ int ruli_rand_next(ruli_rand_t *rand_ctx + + u = isaac_rand(&rand_ctx->isaac_ctx); + +- r = (int) ((float) (1.0 + max - min) * u / ISAAC_UB4MAXVAL + min); ++ r = (int) ((float) (1.0 + max - min) * u / (float) (ISAAC_UB4MAXVAL + min)); + + assert(min <= r); + assert(r <= max); diff --git a/meta-networking/recipes-support/ruli/ruli_0.36.bb b/meta-networking/recipes-support/ruli/ruli_0.36.bb index 8548f9a353..f920b592ac 100644 --- a/meta-networking/recipes-support/ruli/ruli_0.36.bb +++ b/meta-networking/recipes-support/ruli/ruli_0.36.bb @@ -12,6 +12,7 @@ SRC_URI = "http://download.savannah.gnu.org/releases/ruli/ruli_${PV}.orig.tar.gz file://0001-src-ruli_addr.c-Add-missing-format-string.patch \ file://0001-ruli_srv-Mark-prev_addr_list_size-as-unused.patch \ file://0001-Make-space-for-flags-from-environment.patch \ + file://float-conversion.patch \ " SRC_URI[md5sum] = "e73fbfdeadddb68a703a70cea5271468"