public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Rich Mattes <richmattes@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/libQGLViewer] epel10: Don't specialize Vec::operator() for qreal* on arm (just do it for float*)
Date: Mon, 30 Nov 2026 13:55:06 GMT [thread overview]
Message-ID: <179604690687.1.11451978956517951357.rpms-libQGLViewer-0184710f4b3c@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/libQGLViewer
Branch : epel10
Commit : 0184710f4b3c5b0244d3cf2048b66473dbf292a6
Author : Rich Mattes <richmattes@gmail.com>
Date : 2018-08-12T10:18:37-04:00
Stats : +25/-8 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/libQGLViewer/c/0184710f4b3c5b0244d3cf2048b66473dbf292a6?branch=epel10
Log:
Don't specialize Vec::operator() for qreal* on arm (just do it for float*)
---
diff --git a/libQGLViewer-2.6.4-qreal.patch b/libQGLViewer-2.6.4-qreal.patch
index 4ec9512..e8ee56f 100644
--- a/libQGLViewer-2.6.4-qreal.patch
+++ b/libQGLViewer-2.6.4-qreal.patch
@@ -1,21 +1,38 @@
diff -up ./QGLViewer/vec.h.qreal ./QGLViewer/vec.h
---- ./QGLViewer/vec.h.qreal 2018-08-12 09:48:47.564866881 -0400
-+++ ./QGLViewer/vec.h 2018-08-12 09:59:20.133918155 -0400
-@@ -187,6 +187,8 @@ public:
+--- ./QGLViewer/vec.h.qreal 2016-10-06 16:08:49.000000000 -0400
++++ ./QGLViewer/vec.h 2018-08-12 10:17:47.460111801 -0400
+@@ -160,6 +160,7 @@ public:
+ const qreal* address() const { qWarning("Vec::address() is deprecated, use operator const qreal* instead."); return operator const qreal*(); }
#endif
- }
-+// only enable on platforms where qreal is defined as double
+#ifndef __arm__
/*! Conversion operator returning the memory address of the vector.
+ Very convenient to pass a Vec pointer as a parameter to \c GLdouble OpenGL functions:
+@@ -186,7 +187,8 @@ public:
+ return v_;
+ #endif
+ }
+-
++#endif
++// only enable on platforms where qreal is defined as double
+ /*! Conversion operator returning the memory address of the vector.
+
Very convenient to pass a Vec pointer as a \c float parameter to OpenGL functions:
-@@ -204,7 +206,7 @@ public:
+@@ -204,6 +206,16 @@ public:
return result;
}
//@}
--
++#else //ifndef __arm__
++ operator const float*() const {
++#ifdef QGLVIEWER_UNION_NOT_SUPPORTED
++ return &x;
++#else
++ return v_;
++#endif
++ }
+#endif
++
+
/*! @name Algebraic computations */
//@{
- /*! Returns the sum of the two vectors. */
reply other threads:[~2026-11-30 13:55 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179604690687.1.11451978956517951357.rpms-libQGLViewer-0184710f4b3c@fedoraproject.org \
--to=richmattes@gmail.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox