message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
disable NaN checks before BLAS calls dsolve.R (shorter config part) | argv <- commandArgs(trailingOnly = TRUE)
-if (!is.null(options("matprod")[[1]])) {
- options(matprod = "blas")
-}
+if (!is.null(options("matprod")[[1]])) options(matprod = "blas")
nfrom <- 128
nto <- 2048
@@ -42,11 +40,10 @@ while (n <= nto) {
solve(A, B)
})
- mflops <- (2.0/3 * n * n * n + 2 * n * n * n) * loops/ (z[3... |
Disable Runas checkbox when RunasTI selected | * run as dialog
*
* Copyright (C) 2010-2013 wj32
- * Copyright (C) 2018 dmex
+ * Copyright (C) 2018-2022 dmex
*
* This file is part of Process Hacker.
*
@@ -2815,6 +2815,11 @@ INT_PTR CALLBACK PhpRunFileWndProc(
PhFreeFileDialog(fileDialog);
}
break;
+ case IDC_TRUSTEDINSTALLER:
+ {
+ EnableWindow(context->RunAsCheckbo... |
DOCS: Fix documentation on asymmetric keydata types
Some type specs didn't correspond to actual use. | @@ -279,29 +279,29 @@ The following Import/Export types are available for the built-in RSA algorithm:
=over 4
-=item "n" (B<OSSL_PKEY_PARAM_RSA_N>) <integer>
+=item "n" (B<OSSL_PKEY_PARAM_RSA_N>) <unsigned integer>
The RSA "n" value.
-=item "e" (B<OSSL_PKEY_PARAM_RSA_E>) <integer>
+=item "e" (B<OSSL_PKEY_PARAM_RSA_E>) ... |
driver/als_si114x.h: Format with clang-format
BRANCH=none
TEST=none | @@ -109,8 +109,7 @@ struct si114x_drv_data_t {
struct si114x_typed_data_t type_data[2];
};
-#define SI114X_GET_DATA(_s) \
- ((struct si114x_drv_data_t *)(_s)->drv_data)
+#define SI114X_GET_DATA(_s) ((struct si114x_drv_data_t *)(_s)->drv_data)
#define SI114X_GET_TYPED_DATA(_s) \
(&SI114X_GET_DATA(_s)->type_data[(_s)->ty... |
Fixed fps limiter accuracy | @@ -2154,8 +2154,11 @@ static void overlay_DestroySwapchainKHR(
void FpsLimiter(){
int64_t now = os_time_get_nano();
sleepTime = targetFrameTime - (now - frameEnd);
- this_thread::sleep_for(chrono::nanoseconds(sleepTime - frameOverhead));
- frameOverhead = (now - frameStart);
+ if ( sleepTime > frameOverhead ) {
+ int6... |
added missing inits | @@ -34,8 +34,8 @@ static int essidpartfilterlen = 0;
static char *essidfiltername = NULL;
static char *essidpartfiltername = NULL;
-static int pmkid1count;
-static int pmkid2count;
+static int pmkid1count = 0;
+static int pmkid2count = 0;
static char *pmkid1name = NULL;
static char *pmkid2name = NULL;
@@ -44,11 +44,11 ... |
common BUGFIX perm value -1 means keep current values | @@ -1371,6 +1371,7 @@ sr_chmodown(const char *path, const char *owner, const char *group, mode_t perm)
assert(path);
+ if ((int)perm != -1) {
if (perm > 00666) {
sr_errinfo_new(&err_info, SR_ERR_INVAL_ARG, NULL, "Only read and write permissions can be set.");
return err_info;
@@ -1378,6 +1379,7 @@ sr_chmodown(const cha... |
fix tmp env var issue when we get a path starting with /cygdrive/... | #ifndef ANY_MSYS
#include <stdlib.h>
#else
+#include <ctype.h>
#include <string.h>
#include <windows.h>
@@ -26,7 +27,7 @@ const char* get_tmp_env() {
return getenv("temp");
}
// windows
- const char* p = getenv("TEMP"); // For some reason in cmd the userprofile
+ char* p = getenv("TEMP"); // For some reason in cmd the ... |
perf(non-null judgment):
add non-null judgment of "orderCfg.endorser.nodeUrl" in BoatHlfabricDiscoverySubmit() | @@ -983,13 +983,17 @@ BOAT_RESULT BoatHlfabricDiscoverySubmit(BoatHlfabricTx *tx_ptr, const BoatHlfabr
tx_ptr->wallet_ptr->network_info.orderCfg.endorserNumber = discoverResult.discoverConfig.discoverOrders.num;
tx_ptr->wallet_ptr->network_info.orderCfg.endorser = BoatMalloc(discoverResult.discoverConfig.discoverOrders... |
splits +tapp declaration in :dns to shorten lines | $% [%dns-binding =binding:dns]
==
+$ out-peer-data ~
- ++ tapp (^tapp app-state peek-data in-poke-data out-poke-data in-peer-data out-peer-data)
+ ++ tapp
+ %: ^tapp
+ app-state
+ peek-data
+ in-poke-data
+ out-poke-data
+ in-peer-data
+ out-peer-data
+ ==
++ stdio (^stdio out-poke-data out-peer-data)
--
::
|
Remove libcurl dependency | @@ -3,7 +3,7 @@ set_xmakever("2.5.1")
set_languages("cxx20")
set_arch("x64")
-add_requires("spdlog", "nlohmann_json", "hopscotch-map", "minhook", "mem", "imgui", "sol2", "tiltedcore", "libcurl")
+add_requires("spdlog", "nlohmann_json", "hopscotch-map", "minhook", "mem", "imgui", "sol2", "tiltedcore")
add_requireconfs("... |
pcie-slot: Don't fail powering on an already on switch
If the power state is already the required value, return
OPAL_SUCCESS rather than OPAL_PARAMETER to avoid spurrious
errors during boot.
Acked-By: Michael Neuling | @@ -205,7 +205,7 @@ static int64_t pcie_slot_set_power_state_ext(struct pci_slot *slot, uint8_t val,
uint16_t state;
if (slot->power_state == val)
- return OPAL_PARAMETER;
+ return OPAL_SUCCESS;
/* Update the power state and return immediately if the power
* control functionality isn't supported on the PCI slot.
|
news: add draft for introduction text | @@ -15,6 +15,40 @@ Please add your name at the end of every contribution.
We are proud to release Elektra 0.8.<<VERSION>>.
+## Possible Introduction Text
+
+We are proud to present our largest release so far.
+It is the first release of the 0.9.\* version series,
+which goal is it:
+
+- to prepare Elektra for 1.0.0
+- ... |
bumpt Lmod to version v7.6.1 | Summary: Lua based Modules (lmod)
Name: %{pname}%{PROJ_DELIM}
-Version: 7.5.17
+Version: 7.6.1
Release: 1
License: MIT
Group: %{PROJ_NAME}/admin
@@ -60,8 +60,6 @@ Patch1: lmod.consulting.patch
Patch2: lmod.site.patch
# 4/25/17 karl.w.schulz@intel.com - upping patch fuzz factor for newer lmod
%global _default_patch_fuzz... |
Fix logm for stackdump and interrupt status
Stackdump messages are not shown on assertion
Because logm's print buffer can't be flushed after assert.
These messages should be delivered with low output directly. | @@ -39,7 +39,7 @@ int logm_internal(int priority, const char *fmt, va_list ap)
int ret = 0;
buffer_state_t op;
- if (g_logm_isready) {
+ if (g_logm_isready && !up_interrupt_context()) {
flags = irqsave();
if (g_logm_count < LOGM_RSVBUF_COUNT) {
@@ -76,7 +76,7 @@ int logm_internal(int priority, const char *fmt, va_list ... |
Like previous, but actually works. | fel
apse:docs
==
+ ++ wrip
+ |* fel/rule
+ %+ cook
+ |= {a/whit b/plan c/whit}
+ ^- plan
+ b
+ ::
+ :: XX performance: this makes the parser about 50% slower.
+ :: because we double-parse most of the spaces in the file.
+ :: just so we can do a postfix doc-comment.
+ ::
+ :: the correct solution to this problem is to u... |
Fix StencilAction; | @@ -159,6 +159,7 @@ StringEntry lovrStackType[] = {
StringEntry lovrStencilAction[] = {
[STENCIL_KEEP] = ENTRY("keep"),
+ [STENCIL_ZERO] = ENTRY("zero"),
[STENCIL_REPLACE] = ENTRY("replace"),
[STENCIL_INCREMENT] = ENTRY("increment"),
[STENCIL_DECREMENT] = ENTRY("decrement"),
|
Fix periodic reading of ZCL attributes | @@ -6939,7 +6939,6 @@ void DeRestPlugin::idleTimerFired()
if (d->idleLimit <= 0)
{
- DBG_Printf(DBG_INFO, "OTA last busy dt %d s\n", d->otauLastBusyTimeDelta());
QTime t = QTime::currentTime();
if (d->queryTime > t)
@@ -7005,17 +7004,11 @@ void DeRestPlugin::idleTimerFired()
if (clusters[i] != 0xffff)
{
const NodeValue... |
Updated man page no-global-config option. | @@ -444,6 +444,7 @@ Log invalid requests to the specified file.
Do not load the global configuration file. This directory should normally be
/usr/local/etc, unless specified with
.I --sysconfdir=/dir.
+See --dcf option for finding the default configuration file.
.SS
PARSE OPTIONS
.TP
|
removed writing of junk data as not helpful, added checks in freeing of bucket_map and bucket_map->data | @@ -34,7 +34,6 @@ linear_hash_init(
/* open datafile */
linear_hash->database = fopen(data_filename, "w+b");
- fwrite(&(int) { 0xADDE }, sizeof(int), 1, linear_hash->database);
/* initialize linear_hash fields */
linear_hash->initial_size = initial_size;
@@ -650,7 +649,8 @@ write_new_bucket(
/* seek to end of file to a... |
Fixes for 2 SIGSEGVs when section is NULL | @@ -787,7 +787,7 @@ static void loadByHash(Console* console, const char* name, const char* hash, con
{
console->active = false;
- LoadByHashData loadByHashData = { console, strdup(name), strdup(section), callback, data};
+ LoadByHashData loadByHashData = { console, strdup(name), section ? strdup(section) : NULL, callba... |
Add missing $CFLAGS | @@ -282,7 +282,7 @@ have_boringssl=no
if test "x${request_boringssl}" != "xno"; then
save_CFLAGS="$CFLAGS"
save_LIBS="$LIBS"
- CFLAGS="$BORINGSSL_CFLAGS"
+ CFLAGS="$BORINGSSL_CFLAGS $CFLAGS"
LIBS="$BORINGSSL_LIBS $LIBS"
AC_MSG_CHECKING([for SSL_set_quic_early_data_context])
|
SWIG: Find package quietly | @@ -128,10 +128,10 @@ endmacro ()
macro (find_swig)
if (NOT SWIG_FOUND)
- find_package (SWIG 3)
+ find_package (SWIG 3 QUIET)
if (NOT SWIG_FOUND)
message (STATUS "Search for swig2 instead")
- find_package (SWIG 2)
+ find_package (SWIG 2 QUIET)
endif ()
endif (NOT SWIG_FOUND)
endmacro (find_swig)
|
tools/pyboard: Run exec: command as a string.
The Python documentation recommends to pass the command as a string when
using Popen(..., shell=True). This is because "sh -c <string>" is used to
execute the command and additional arguments after the command string are
passed to the shell itself (not the executing comman... | @@ -152,7 +152,7 @@ class ProcessToSerial:
def __init__(self, cmd):
import subprocess
- self.subp = subprocess.Popen(cmd.split(), bufsize=0, shell=True, preexec_fn=os.setsid,
+ self.subp = subprocess.Popen(cmd, bufsize=0, shell=True, preexec_fn=os.setsid,
stdin=subprocess.PIPE, stdout=subprocess.PIPE)
# Initially was i... |
Use -g if using valgrind | @@ -13,6 +13,8 @@ jobs:
citests:
name: CI-Tests
runs-on: ubuntu-latest
+ env:
+ PTLS_CMAKE_OPTS: "-DCMAKE_C_FLAGS=-g -DCMAKE_CXX_FLAGS=-g"
steps:
- name: Checkout repository
@@ -27,6 +29,8 @@ jobs:
sudo apt-get install -y libssl-dev
./ci/build_picotls.sh
cmake .
+ CXXFLAGS="-Wall -Wextra -Wpedantic -Werror -g"
+ CFLAGS... |
If Actor Facing Direction codegen | @@ -8,6 +8,7 @@ import {
tempVariableName,
} from "../helpers/variables";
import {
+ ActorDirection,
ScriptEvent,
Variable,
} from "../../store/features/entities/entitiesTypes";
@@ -908,7 +909,7 @@ class ScriptBuilder {
this._addComment("Actor Push");
this._setConst("ACTOR", 0);
- this._stackPushConst(3);
+ this._stack... |
Yan LR: Extend list of restrictions | @@ -217,6 +217,16 @@ sudo kdb umount user/tests/yanlr
- Yan LR does not provide write support for data. Please use the [YAML Smith](../yamlsmith/) plugin for that purpose.
+### Input Restrictions
+
+The plugin should, but does not, limit the amount
+
+- of **nesting levels**,
+- the **length of numbers**, and
+- the **... |
Don't use R when we are solving for LH | @@ -661,8 +661,9 @@ static FLT run_mpfit_find_3d_structure(MPFITData *d, PoserDataLight *pdl, Surviv
mp_result result = {};
+ int nfree = survive_optimizer_get_free_parameters_count(&mpfitctx);
survive_release_ctx_lock(ctx);
- int res = survive_optimizer_run(&mpfitctx, &result, R);
+ int res = survive_optimizer_run(&mp... |
Corrected homebridge-install log dir path in delete function | @@ -299,7 +299,7 @@ function checkUpdate {
# delete old Log files
if [ $(ls -1 "${LOG_DIR}" | wc -l) -gt 3 ]; then
oldest=$(ls "${LOG_DIR}" -t | tail -n1)
- rm -f "$oldest"
+ rm -f "${LOG_DIR}/$oldest"
fi
if [[ $AUTO_UPDATE = false ]] || [ -z $AUTO_UPDATE ]; then
|
Tweak how dumbindent handles #preproc lines | @@ -118,7 +118,7 @@ import (
// 'Constants', but their type is []byte, not string.
var (
backTick = []byte("`")
- externC = []byte("extern \"C\" {")
+ extern = []byte("extern ")
namespace = []byte("namespace ")
starSlash = []byte("*/")
@@ -177,6 +177,7 @@ func FormatBytes(dst []byte, src []byte, opts *Options) []byte {... |
[bsp][stm32][unite] input format by bytes | @@ -3,6 +3,9 @@ config BSP_USING_CRC
bool "Enable CRC (CRC-32 0x04C11DB7 Polynomial)"
select RT_USING_HWCRYPTO
select RT_HWCRYPTO_USING_CRC
+ # "Crypto device frame dose not support above 8-bits granularity"
+ # "Reserve progress, running well, about 32-bits granularity, such as stm32f1, stm32f4"
+ depends on (SOC_SERI... |
README: add a section on usefulness | @@ -28,14 +28,12 @@ implementation in the relevant header.
## Portability
The code currently requires GCC (or a compiler which implements GCC's
-vector extensions, like clang or icc). It wouldn't be too difficult
-to support other compilers, one would mostly just need to add macros
-for accessing individual elements in... |
test: allow /. in redirect URLs | /%2f%5c%2f%67%6f%6f%67%6c%65%2e%63%6f%6d/
/%5cexample.com
/%68%74%74%70%3a%2f%2f%67%6f%6f%67%6c%65%2e%63%6f%6d
-/.example.com
//%09/example.com
//%5cexample.com
///%09/example.com
@@ -554,7 +553,6 @@ javascripT://anything%0D%0A%0D%0Awindow.alert(document.cookie)
/%2f%2flocaldomain.pw
/localdomain.pw/%2f%2e%2e
/http:/lo... |
build: fallback to dwarf-4 format because of lesser binary size (dwarf-5 is by default in GCC 11) | @@ -103,6 +103,9 @@ function(__build_set_default_build_specifications)
"-Wextra"
"-Wno-unused-parameter"
"-Wno-sign-compare"
+ # Default is dwarf-5 since GCC 11, fallback to dwarf-4 because of binary size
+ # TODO: IDF-5160
+ "-gdwarf-4"
# always generate debug symbols (even in release mode, these don't
# go into the f... |
spec: remove duplicate key in navigation.yaml | @@ -893,7 +893,6 @@ definitions:
id: 0x0204
public: false
short_desc: Velocity in ECEF
- public: False
desc: |
This message reports the velocity in Earth Centered Earth Fixed
(ECEF) coordinates. The full GPS time is given by the preceding
|
remove unnecessary test
also optimize check sum | @@ -419,14 +419,11 @@ static int ssl_tls13_parse_pre_shared_key_ext( mbedtls_ssl_context *ssl,
matched_identity = identity_id;
/* Update handshake parameters */
- if( psk_type == MBEDTLS_SSL_TLS1_3_PSK_EXTERNAL )
- {
ssl->session_negotiate->ciphersuite = cipher_suite;
ssl->handshake->ciphersuite_info = ciphersuite_info... |
FLIR: Faster UVC streaming. | @@ -346,7 +346,7 @@ void HAL_SPI_RxCpltCallback(SPI_HandleTypeDef *hspi)
}
}
-static int snapshot(sensor_t *sensor, image_t *image, streaming_cb_t cb)
+static int snapshot(sensor_t *sensor, image_t *image, streaming_cb_t streaming_cb)
{
fb_update_jpeg_buffer();
@@ -354,6 +354,10 @@ static int snapshot(sensor_t *sensor,... |
I accidentally push a modified setup.py file, back to original file, sorry for that | @@ -15,9 +15,9 @@ except AttributeError:
_ccllib = Extension(
"_ccllib",
["pyccl/ccl.i",],
- libraries = ['m', 'gsl', 'gslcblas', 'ccl'], #'gomp',
- include_dirs = [numpy_include, "include/", "class/include", "/opt/local/include"],
- extra_compile_args=['-O4', '-std=c99'],
+ libraries = ['m', 'gsl', 'gslcblas', 'gomp',... |
gall: fix virtualization of agent compilation | |= =term
^- [(each vase tang) _ap-core]
::
- =/ compiled
+ =/ virtual
=/ =type p.running-state.current-agent
=/ =hoon [%limb term]
- (~(mint wa cache.current-agent) type hoon)
- ::
- =/ virtual
- =/ trap |.(compiled)
- (mule trap)
+ %- mule
+ |. (~(mint wa cache.current-agent) type hoon)
::
?: ?=(%.n -.virtual)
=/ =tan... |
doc: update Language Extensions in coding guidelines
update Language Extensions in coding guidelines | @@ -3640,3 +3640,10 @@ b) '__builtin_va_start', refers to section 6.20 in GCC 7.3 Manual.
c) '__builtin_va_end', refers to section 6.20 in GCC 7.3 Manual.
d) '__builtin_offsetof', refers to section 6.51 in GCC 7.3 Manual.
+C-LE-05: Use of extended designated initializers is allowed
+====================================... |
posix: set POLLNVAL on bad fd, POLLHUP on msgSend failure in do_poll_iteration | @@ -1766,7 +1766,7 @@ static int do_poll_iteration(struct pollfd *fds, nfds_t nfds)
msg.i.attr.val = fds[i].events;
if (posix_getOpenFile(fds[i].fd, &f) < 0) {
- err = -EBADF;
+ err = POLLNVAL;
}
else {
hal_memcpy(&msg.i.attr.oid, &f->oid, sizeof(oid_t));
@@ -1776,7 +1776,7 @@ static int do_poll_iteration(struct pollfd... |
[mechanics] expose BulletR::distance() | @@ -59,6 +59,11 @@ public:
_contactPoints = p;
};
+ double distance() const
+ {
+ return _contactDistance;
+ };
+
double y_correction_A() { return _y_correction_A; }
double y_correction_B() { return _y_correction_A; }
double y_correction() { return _y_correction_A + _y_correction_B; }
|
Fix a typo in user_mbuf.c | @@ -506,7 +506,7 @@ mbuf_initialize(void *dummy)
#else
zone_mbuf = umem_cache_create(MBUF_MEM_NAME, MSIZE, 0,
mb_ctor_mbuf, mb_dtor_mbuf, NULL,
- NUULL,
+ NULL,
NULL, 0);
#endif
/*zone_ext_refcnt = umem_cache_create(MBUF_EXTREFCNT_MEM_NAME, sizeof(u_int), 0,
|
Reduce possibility of stale shares for Bitcoin family of pools | @@ -66,9 +66,9 @@ namespace MiningCore.Blockchain.Bitcoin
protected readonly BitcoinExtraNonceProvider extraNonceProvider;
protected readonly IHashAlgorithm sha256d = new Sha256D();
protected readonly IHashAlgorithm sha256dReverse = new DigestReverser(new Sha256D());
-
+ protected const int MaxActiveJobs = 4;
protected... |
haskell-cmake-improvements: fix mountpoint | @@ -135,7 +135,7 @@ until we have finished writing the whole specification.
kdb get spec/tests/prelude/fallback/#) || \
(sudo kdb umount spec/tests/prelude && \
sudo kdb mount "$PWD/src/plugins/typechecker/typechecker/prelude.ini" spec/tests/prelude ini)
-sudo kdb mount simplespecification.ini spec/tests/simplespecific... |
neon/qrdmulh_lane: fix typo in undefs
Fixes | @@ -61,7 +61,7 @@ SIMDE_BEGIN_DECLS_
#define simde_vqrdmulhq_lane_s16(a, v, lane) simde_vqrdmulhq_s16((a), simde_vdupq_lane_s16((v), (lane)))
#endif
#if defined(SIMDE_ARM_NEON_A32V7_ENABLE_NATIVE_ALIASES)
- #undef vqrdmulhq_s16
+ #undef vqrdmulhq_lane_s16
#define vqrdmulhq_lane_s16(a, v, lane) simde_vqrdmulhq_lane_s16(... |
worklow/show_mnemonic: use workflow_blocking | // See the License for the specific language governing permissions and
// limitations under the License.
+#include "show_mnemonic.h"
+
+#include "blocking.h"
+#include "password.h"
+#include "status.h"
+#include "workflow.h"
+
#include <hardfault.h>
#include <random.h>
#include <ui/components/ui_components.h>
#include ... |
blocklevel: smart_write: Deny writes intersecting ECC protected regions
Other code paths don't handle writes spanning mixed regions, and it's a
headache, so deny it here too. | @@ -512,6 +512,7 @@ int blocklevel_smart_write(struct blocklevel_device *bl, uint64_t pos, const voi
uint64_t ecc_start;
void *erase_buf;
int rc = 0;
+ int ecc_protection;
if (!buf || !bl) {
errno = EINVAL;
@@ -529,7 +530,14 @@ int blocklevel_smart_write(struct blocklevel_device *bl, uint64_t pos, const voi
if (rc)
ret... |
Disable check_handle_against_spec | @@ -400,11 +400,12 @@ static void print_values(grib_context* c, const grib_util_grid_spec2* spec,
#endif
}
+/*
static int DBL_EQUAL(double d1, double d2, double tolerance)
{
return fabs(d1-d2) < tolerance;
}
-
+*/
/* Returns a boolean: 1 if angle can be encoded, 0 otherwise */
static int grib1_angle_can_be_encoded(cons... |
updated mo depth | @@ -427,7 +427,7 @@ void InitializeOptionsMagmOc(OPTIONS *options,fnReadOption fnRead[]) {
options[OPT_WATERMASSATM].iType = 2;
options[OPT_WATERMASSATM].bMultiFile = 1;
options[OPT_WATERMASSATM].dNeg = TOMASS; // for input: factor to mulitply for SI - for output: divide (e.g. 1/TOMASS)
- options[OPT_WATERMASSATM].dDef... |
doc: Fix description of pg_replication_origin_oid() in error case
This function returns NULL if the replication origin given in input
argument does not exist, contrary to what the docs described
previously.
Author: Ian Barwick
Discussion:
Backpatch-through: 10 | @@ -21095,8 +21095,9 @@ postgres=# SELECT * FROM pg_walfile_name_offset(pg_stop_backup());
<type>oid</type>
</entry>
<entry>
- Lookup a replication origin by name and return the internal id. If no
- corresponding replication origin is found an error is thrown.
+ Lookup a replication origin by name and return the intern... |
Lazy way to report errors while parsing assembly report | @@ -87,6 +87,7 @@ namespace ebi
size_t const default_line_buffer_size = 64 * 1024;
size_t const assembly_report_column_count = 10;
report_line.reserve(default_line_buffer_size);
+ std::vector<std::string> assembly_report_errors; // to contain errors while parsing
int contig_index = 0, line_num = -1;
while (util::readli... |
crypto-native: fix ghash function naming
Type: refactor | @@ -124,13 +124,13 @@ gmul_lo_lo (u8x16 a, u8x16 b)
}
static_always_inline u8x16
-gmul_lo_hi (u8x16 a, u8x16 b)
+gmul_hi_lo (u8x16 a, u8x16 b)
{
return (u8x16) _mm_clmulepi64_si128 ((__m128i) a, (__m128i) b, 0x01);
}
static_always_inline u8x16
-gmul_hi_lo (u8x16 a, u8x16 b)
+gmul_lo_hi (u8x16 a, u8x16 b)
{
return (u8x1... |
Check if ARRAY_SIZE is already defined
Check if ARRAY_SIZE is already defined before defining in the OS | ((type *)(((char *)(ptr)) - offsetof(type, field)))
/* Helper to calculate number of elements in array */
+#ifndef ARRAY_SIZE
#define ARRAY_SIZE(array) \
(sizeof(array) / sizeof((array)[0]))
-
+#endif
#endif
|
Have that the RAC+Zlib Leaf TTag must be 0xFF | @@ -468,8 +468,9 @@ is stored big-endian, like Zlib's other checksums, and its 4 byte value must
match the `DICTID` (in RFC 1950 terminology) given in the `Primary CRange`'s
Zlib-formatted data.
-The `Tertiary CRange` and `Leaf TTag` values are ignored. The `Leaf STag` value
-is also ignored, other than deriving the `S... |
Remove obsolete server variables
Removed in | @@ -47,11 +47,9 @@ main(int argc, /* I - Number of command-line args */
"ErrorLog",
"FatalErrors",
"FileDevice",
- "FontPath",
"Group",
"Listen",
"LogFilePerm",
- "LPDConfigFile",
"PageLog",
"PassEnv",
"Port",
@@ -65,7 +63,6 @@ main(int argc, /* I - Number of command-line args */
"ServerKeychain",
"ServerRoot",
"SetEnv... |
More TLSv1.3 cookie tests
Test sending a cookie without a key_share | @@ -28,6 +28,11 @@ plan skip_all => "$test_name needs TLS1.3 enabled"
$ENV{OPENSSL_ia32cap} = '~0x200000200000000';
+use constant {
+ COOKIE_ONLY => 0,
+ COOKIE_AND_KEY_SHARE => 1
+};
+
my $proxy = TLSProxy::Proxy->new(
undef,
cmdstr(app(["openssl"]), display => 1),
@@ -36,22 +41,31 @@ my $proxy = TLSProxy::Proxy->new(... |
spi: fix spi eeprom example build
Fix GNU make build error introduced in | # (Uses default behaviour of compiling all source files in directory, adding 'include' to include path.)
COMPONENT_ADD_LDFRAGMENTS += linker.lf
+COMPONENT_ADD_INCLUDEDIRS := .
|
common/power_button.c: Format with clang-format
BRANCH=none
TEST=none | @@ -41,8 +41,11 @@ static const struct button_config power_button = {
int power_button_signal_asserted(void)
{
- return !!(gpio_get_level(power_button.gpio)
- == (power_button.flags & BUTTON_FLAG_ACTIVE_HIGH) ? 1 : 0);
+ return !!(
+ gpio_get_level(power_button.gpio) ==
+ (power_button.flags & BUTTON_FLAG_ACTIVE_HIGH) ... |
Mention hslua-classes in README | @@ -43,11 +43,14 @@ Below are the packages which make up HsLua:
making the relevant types instances of QuickCheck's Arbitrary
typeclass.
- - **hslua-core**: Wrappers and types which make working with Lua
+ - **hslua-core**: Wrappers and types that make working with Lua
less C-like and more idiomatic -- from a Haskell p... |
db-path, default db folder extended with PID | @@ -687,8 +687,8 @@ Only if configured with --enable-tcb=btree
.TP
\fB\-\-db-path=<dir>
Path where the on-disk database files are stored. The default value is the
-.I /tmp
-directory.
+.I /tmp/goaccess<PID>
+directory (created on-demand).
Only if configured with --enable-tcb=btree
.TP
|
out_file: add complementary 'path' and 'file' options | #endif
struct flb_file_conf {
+ const char *out_path;
const char *out_file;
const char *delimiter;
const char *label_delimiter;
@@ -315,7 +316,7 @@ static void cb_file_flush(const void *data, size_t bytes,
size_t last_off = 0;
size_t alloc_size = 0;
size_t total;
- const char *out_file;
+ char out_file[PATH_MAX];
char ... |
Import Haskell functions instead of importing via FFI
The Raw.Error module used FFI bindings to access some functions to avoid
circular module dependencies. This is no longer a concern, so we can use
the Haskell bindings without having to FFI import the raw functions
again. | @@ -16,10 +16,11 @@ module Foreign.Lua.Raw.Error
) where
import Data.ByteString (ByteString)
-import Foreign.C (CChar, CInt (CInt), CSize (..))
-import Foreign.Lua.Raw.Types (Lua, StackIndex)
+import Foreign.Lua.Raw.Auxiliary (hsluaL_tolstring)
+import Foreign.Lua.Raw.Functions (lua_pop, lua_pushlstring)
+import Foreig... |
fix example which is not intended to write to flash, but actually was | @@ -453,6 +453,7 @@ Sets the WiFi station configuration.
station_cfg={}
station_cfg.ssid="NODE-AABBCC"
station_cfg.pwd="password"
+station_cfg.save=false
wifi.sta.config(station_cfg)
--connect to Access Point (DO save config to flash)
@@ -462,14 +463,14 @@ station_cfg.pwd="password"
station_cfg.save=true
wifi.sta.confi... |
Build: Fix macbuild.tool not removing files from previous archive | @@ -63,7 +63,7 @@ package() {
cp -r "${selfdir}/UDK/OcSupportPkg/Utilities/Recovery" tmp/Utilities/ || exit 1
cp -r "${selfdir}/UDK/OcSupportPkg/Utilities/BootInstall" tmp/Utilities/ || exit 1
pushd tmp || exit 1
- zip -qry ../"OpenCore-v${ver}-${2}.zip" * || exit 1
+ zip -qry -FS ../"OpenCore-v${ver}-${2}.zip" * || ex... |
Fix rgb10a2 constant; | @@ -150,7 +150,7 @@ const char* TextureFormats[] = {
[FORMAT_RG16F] = "rg16f",
[FORMAT_RG32F] = "rg32f",
[FORMAT_RGB5A1] = "rgb5a1",
- [FORMAT_RGB10A2] = "rgb5a2",
+ [FORMAT_RGB10A2] = "rgb10a2",
[FORMAT_RG11B10F] = "rg11b10f",
[FORMAT_D16] = "d16",
[FORMAT_D32F] = "d32f",
|
[CHAIN] minor logging for TODO | @@ -73,6 +73,8 @@ func (core *Core) init(dbType string, dataDir string, testModeOn bool, forceRese
return err
}
+ // TODO recovery for crashed chain mapping
+
if forceResetHeight > 0 {
if err := core.cdb.ResetBest(forceResetHeight); err != nil {
logger.Fatal().Err(err).Uint64("height", forceResetHeight).Msg("failed to ... |
publish: join.js proper catch and UI transition | @@ -3,19 +3,33 @@ import classnames from 'classnames';
import { Route, Link } from 'react-router-dom';
import urbitOb from 'urbit-ob';
-//TODO textarea + join button to make an api call
export class JoinScreen extends Component {
constructor(props) {
super(props);
this.state = {
book: '/',
- error: false
+ error: false... |
framework/arastorage: refine exceptional protection of attribute add
in function relation_attribute_add, modify ouput para rel after
call storage_put_attribute successfully. otherwise need to rollback
the modification of rel if put attribute failed. | @@ -356,11 +356,6 @@ attribute_t *relation_attribute_add(relation_t *rel, db_direction_t dir, char *n
attribute->index = NULL;
attribute->flags = 0 /*ATTRIBUTE_FLAG_UNIQUE */ ;
- rel->row_length += element_size;
-
- list_add(rel->attributes, attribute);
- rel->attribute_count++;
-
if (dir == DB_STORAGE) {
if (DB_ERROR(... |
CCode: Mark problematic code reported by OCLint | @@ -58,8 +58,7 @@ CppKeySet percentConfig ()
void testRoundTrip (string const decodedString, string const encodedString = "", CppKeySet config = defaultConfig ())
#ifdef __llvm__
- __attribute__ ((annotate ("oclint:suppress[empty if statement]"), annotate ("oclint:suppress[high cyclomatic complexity]"),
- annotate ("oc... |
Extract cache.flush() method from cache.stop() | @@ -386,31 +386,39 @@ class Cache:
return self.io_queues[0]
def stop(self, flush: bool = True):
+ if flush:
+ self.flush()
+
self.get_and_write_lock()
- if flush:
c = OcfCompletion(
[("cache", c_void_p), ("priv", c_void_p), ("error", c_int)]
)
- self.owner.lib.ocf_mngt_cache_flush(self.cache_handle, False, c, None)
+
+... |
DeviceJS: Silence debug output | @@ -50,7 +50,6 @@ JsResourceItem::~JsResourceItem()
{
if (item)
{
- DBG_Printf(DBG_INFO, "dtor %s\n", item->descriptor().suffix);
item = nullptr;
}
}
@@ -95,7 +94,7 @@ void JsResourceItem::setValue(const QVariant &val)
{
if (item)
{
- DBG_Printf(DBG_INFO, "JsResourceItem.setValue(%s) = %s\n", item->descriptor().suffix,... |
os_web: Unregister callbacks in lovrPlatformDestroy; | @@ -204,7 +204,15 @@ bool lovrPlatformInit() {
}
void lovrPlatformDestroy() {
- //
+ emscripten_set_beforeunload_callback(NULL, NULL);
+ emscripten_set_focus_callback(CANVAS, NULL, true, NULL);
+ emscripten_set_blur_callback(CANVAS, NULL, true, NULL);
+ emscripten_set_resize_callback(EMSCRIPTEN_EVENT_TARGET_WINDOW, NUL... |
stm32l4: set LSE oscilator to medium drive strength to increase RTC precision | @@ -842,27 +842,22 @@ void _stm32_init(void)
/* Set DBP bit */
*(stm32_common.pwr + pwr_cr1) |= 1 << 8;
+ hal_cpuDataBarrier();
- /* Enable LSE clock source */
- *(stm32_common.rcc + rcc_bdcr) |= 1;
-
+ /* Enable LSE clock source, set it as RTC source and set medium xtal drive strength */
+ t = *(stm32_common.rcc + rcc... |
Added --log-size command line option to man page. | @@ -439,6 +439,10 @@ FILE OPTIONS
Specify the path to the input log file. If set in the config file, it will take
priority over -f from the command line.
.TP
+\fB\-S \-\-log-size=<bytes>
+Specify the log size in bytes. This is useful when piping in logs for
+processing in which the log size can be explicitly set.
+.TP
... |
options: fix segfault when TERM or HOME isn't set
Regression from if TERM isn't
set in the environment, getenv returns NULL which we shouldn't strcmp.
Similarly guard against using home_dir if it's null when looking for
global gitignore files.
This can be reproduced and tested with `env -i ./ag foo`. | @@ -150,7 +150,7 @@ void init_options(void) {
memset(&opts, 0, sizeof(opts));
opts.casing = CASE_DEFAULT;
opts.color = TRUE;
- if (strcmp(term, "dumb") == 0) {
+ if (term && !strcmp(term, "dumb")) {
opts.color = FALSE;
}
opts.color_win_ansi = FALSE;
@@ -713,8 +713,10 @@ void parse_options(int argc, char **argv, char **... |
removed redundant arguments from angular_cl | @@ -285,8 +285,7 @@ def _check_array_params(f_arg):
def angular_cl(cosmo, cltracer1, cltracer2, ell,
- l_limber=-1., l_logstep=1.05, l_linstep=20., dchi=3.,
- dlk=0.003, zmin=0.05) :
+ l_limber=-1., l_logstep=1.05, l_linstep=20.) :
"""Calculate the angular (cross-)power spectrum for a pair of tracers.
Args:
|
pyocf: reintroduce trace device | @@ -473,6 +473,56 @@ class ErrorDevice(Volume):
return self.vol.get_copy()
+class TraceDevice(Volume):
+ class IoType(IntEnum):
+ Data = 1
+ Flush = 2
+ Discard = 3
+
+ def __init__(self, vol, trace_fcn=None, uuid=None):
+ self.vol = vol
+ super().__init__(uuid)
+ self.trace_fcn = trace_fcn
+
+ def _trace(self, io, io_... |
in_prometheus_scrape: fix invalid type reference in log call format string | @@ -75,8 +75,8 @@ static int collect_metrics(struct prom_scrape *ctx)
/* get upstream connection */
u_conn = flb_upstream_conn_get(ctx->upstream);
if (!u_conn) {
- flb_plg_error(ctx->ins, "could not get an upstream connection to %s:%s",
- ctx->ins->host.port, ctx->ins->host.port);
+ flb_plg_error(ctx->ins, "could not g... |
add the Keycloak example of as a "unit test" | @@ -1322,7 +1322,23 @@ static char * test_authz_worker(request_rec *r) {
"\"two\","
"\"three\""
"],"
- "\"somebool\": false"
+ "\"somebool\": false,"
+
+ "\"realm_access\": {"
+ "\"roles\": ["
+ "\"someRole1\","
+ "\"someRole2\""
+ "]"
+ "},"
+ "\"resource_access\": {"
+ "\"someClient\": {"
+ "\"roles\": ["
+ "\"someRo... |
nrf/drivers/bluetooth: Start advertising after disconnect.
Disconnecting after a connect would not restart advertising, so
reconnecting may get harder. | @@ -141,6 +141,7 @@ STATIC void gap_event_handler(mp_obj_t self_in, uint16_t event_id, uint16_t conn
} else if (event_id == 17) { // disconnect event
self->conn_handle = 0xFFFF; // invalid connection handle
m_connected = false;
+ ble_uart_advertise();
}
}
|
Add linux/sched.h to list of libbpf.c includes
This should hopefully fix compile errors on some ubuntu systems.
Also, reorders the includes according to clang-format | #include <fcntl.h>
#include <limits.h>
#include <linux/bpf.h>
+#include <linux/bpf_common.h>
#include <linux/if_packet.h>
-#include <linux/pkt_cls.h>
#include <linux/perf_event.h>
+#include <linux/pkt_cls.h>
#include <linux/rtnetlink.h>
+#include <linux/sched.h>
#include <linux/unistd.h>
#include <linux/version.h>
-#in... |
travis: add GENERATE=yes no-makedepend to the ARM64 build. | @@ -54,7 +54,7 @@ jobs:
- os: linux
arch: arm64
compiler: gcc
- env: CONFIG_OPTS="no-asm no-deprecated enable-buildtest-c++ --strict-warnings -D_DEFAULT_SOURCE" BUILDONLY="yes" CHECKDOCS="yes" CPPFLAGS="-ansi"
+ env: CONFIG_OPTS="no-asm no-makedepend no-deprecated enable-buildtest-c++ --strict-warnings -D_DEFAULT_SOURC... |
webp-container-spec: clarify background color note
replace ...a transparency value (alpha)... with clearer text
based on comments from: | @@ -400,8 +400,8 @@ Background Color: 32 bits (_uint32_)
**Note**:
- * Background color MAY contain a transparency value (alpha), even if the
- _Alpha_ flag in [VP8X chunk](#extended_header) is unset.
+ * Background color MAY contain a non-opaque alpha value, even if the _Alpha_
+ flag in [VP8X chunk](#extended_header)... |
gimble: configure PPVAR_SYS
The PPVAR_SYS must same as battery voltage(3 cells * 4.4V)
BRANCH=none
TEST=make -j BOARD=gimble | #include "common.h"
#include "compile_time_macros.h"
#include "console.h"
+#include "driver/charger/bq25710.h"
#include "gpio.h"
#include "gpio_signal.h"
#include "hooks.h"
@@ -114,6 +115,13 @@ enum battery_present battery_hw_present(void)
return gpio_get_level(batt_pres) ? BP_NO : BP_YES;
}
+static void board_init(voi... |
cmake: allow / in placements
thank to | @@ -590,7 +590,7 @@ function (generate_readme p)
STRING(REGEX REPLACE ";" " " PROVIDES "${PROVIDES}")
STRING(REGEX REPLACE "\"- +infos/provides *= *([a-zA-Z0-9/ ]*)\\\\n\"" "keyNew(\"system/elektra/modules/${p}/infos/provides\",\nKEY_VALUE, \"${PROVIDES}\", KEY_END)," contents "${contents}")
- STRING(REGEX REPLACE "\"-... |
Adding tol in primalResidual and dualResidual functions.
The function setErrorArray has one more parameter (projection error). The value is currently set to 0.0. | @@ -454,7 +454,7 @@ void grfc3d_IPM(GlobalRollingFrictionContactProblem* restrict problem, double* r
double gapVal = 1e300;
// double dualgap = 1e300;
double relgap = 1e300;
- double error_array[5];
+ double error_array[6];
error_array[0] = pinfeas;
error_array[1] = dinfeas;
error_array[2] = relgap;
@@ -686,10 +686,10 ... |
enable HLS_CLOCK_PERIOD_CONSTRAINT to be commented in snap_env.sh | @@ -31,10 +31,17 @@ PART_NUMBER ?= $(FPGACHIP)
snap_env_sh = $(SNAP_ROOT)/snap_env.sh
HLS_ACTION_CLOCK_DEFAULT = 4
ifneq ("$(wildcard $(snap_env_sh))","")
+ HLS_ACTION_CLOCK_COMMENTED = $(shell grep HLS_CLOCK_PERIOD_CONSTRAINT $(snap_env_sh) | grep "\#")
+ ifeq "$(HLS_ACTION_CLOCK_COMMENTED)" ""
+ #if line not commente... |
ectool: Fix array size check for pchg_state_text
This patch fixes the runtime check for pchg_state_text size and adds
BUILD_ASSERT.
BRANCH=none
TEST=Verify 'ectool pchg 0' prints states properly on CoachZ. | @@ -9433,7 +9433,9 @@ static int cmd_pchg_info(const struct ec_response_pchg *res)
{
static const char * const pchg_state_text[] = EC_PCHG_STATE_TEXT;
- printf("State: %s (%d)\n", res->state < sizeof(pchg_state_text)
+ BUILD_ASSERT(ARRAY_SIZE(pchg_state_text) == PCHG_STATE_COUNT);
+
+ printf("State: %s (%d)\n", res->st... |
Fix: Add Parenthesis around if-statement in macro | #define portNVIC_INT_CTRL_REG ( *( ( volatile uint32_t * ) 0xe000ed04 ) )
#define portNVIC_PENDSVSET_BIT ( 1UL << 28UL )
- #define portEND_SWITCHING_ISR( xSwitchRequired ) if( xSwitchRequired != pdFALSE ) portYIELD()
+
+ #define portEND_SWITCHING_ISR( xSwitchRequired ) \
+ do { \
+ if( (xSwitchRequired) != pdFALSE ) po... |
UserNotes: Update default settings for 3.x builds | @@ -1331,7 +1331,7 @@ LOGICAL DllMain(
PPH_PLUGIN_INFORMATION info;
PH_SETTING_CREATE settings[] =
{
- { StringSettingType, SETTING_NAME_DATABASE_PATH, L"%APPDATA%\\Process Hacker 2\\usernotesdb.xml" },
+ { StringSettingType, SETTING_NAME_DATABASE_PATH, L"%APPDATA%\\Process Hacker\\usernotesdb.xml" },
{ StringSettingTy... |
Travis: Use recent compilers for Linux builds | @@ -26,17 +26,35 @@ matrix:
apt:
sources: [ ubuntu-toolchain-r-test ]
packages: [ g++-7 ]
- env: [ ASAN=ON ]
+ env:
+ - ASAN=ON
+ - CC_COMPILER=gcc-7
+ - CXX_COMPILER=g++-7
- os: linux
compiler: clang
- env: [ ASAN=ON ]
+ addons:
+ apt:
+ sources: [ llvm-toolchain-trusty-6.0, ubuntu-toolchain-r-test ]
+ packages: [ cla... |
Disable KPH by default | * program settings cache
*
* Copyright (C) 2010-2016 wj32
- * Copyright (C) 2017-2018 dmex
+ * Copyright (C) 2017-2020 dmex
*
* This file is part of Process Hacker.
*
@@ -41,7 +41,7 @@ VOID PhAddDefaultSettings(
PhpAddIntegerSetting(L"ElevationLevel", L"1"); // PromptElevateAction
PhpAddIntegerSetting(L"EnableCycleCpuU... |
YAwn: Add token number to logging message | @@ -68,12 +68,12 @@ void ErrorListener::syntaxError (int errorTokenNumber, void * errorTokenData, in
if (ignoredTokenData != nullptr)
{
auto data = **static_cast<unique_ptr<Token> *> (ignoredTokenData);
- ELEKTRA_LOG_DEBUG ("Ignored token: %s", to_string (data).c_str ());
+ ELEKTRA_LOG_DEBUG ("Ignored token number %d: ... |
[io] add the possibility to add solver_options for gmp | @@ -1697,7 +1697,6 @@ class MechanicsHdf5Runner(siconos.io.mechanics_hdf5.MechanicsHdf5):
time = self.current_time()
positions = self._io.positions(self._nsds)
-
if positions is not None:
self._dynamic_data.resize(current_line + positions.shape[0], 0)
@@ -1761,7 +1760,6 @@ class MechanicsHdf5Runner(siconos.io.mechanics... |
[chainmaker][#472]add NULL para | @@ -145,7 +145,7 @@ int main(int argc, char *argv[])
return -1;
}
- result = BoatHlchainmakerAddTxParam(&tx_ptr, 6, "time", "6543235", "file_hash", "ab3456df5799b87c77e7f85", "file_name", "name005");
+ result = BoatHlchainmakerAddTxParam(&tx_ptr, 6, "time", "6543235", "file_hash", "ab3456df5799b87c77e7f85", "file_name"... |
added -h for help | @@ -420,6 +420,7 @@ printf("%s %s (C) %s ZeroBeat\n"
"-p : list messagepair\n"
"-l : list essid len\n"
"-e : list essid\n"
+ "-h : this help\n"
"\n", eigenname, VERSION, VERSION_JAHR, eigenname, eigenname);
exit(EXIT_FAILURE);
}
@@ -505,6 +506,10 @@ while ((auswahl = getopt(argc, argv, "i:o:aAsSMRwpPlehv")) != -1)
outm... |
nimble/ll: Fix AuxPtr offset calculations
Rounds which were cause by changing from usec->ticks->usec made AuxPtr
incorrect. | @@ -394,9 +394,6 @@ static void
ble_ll_adv_put_aux_ptr(struct ble_ll_adv_sm *advsm, uint32_t offset,
uint8_t *dptr)
{
- /* in usecs */
- offset = os_cputime_ticks_to_usecs(offset);
-
dptr[0] = advsm->adv_secondary_chan;
if (offset > 245700) {
@@ -468,7 +465,7 @@ ble_ll_adv_pdu_make(uint8_t *dptr, void *pducb_arg, uint8... |
drv_serial: fix warning | @@ -93,7 +93,7 @@ void serial_smart_audio_send_data(uint8_t *data, uint32_t size) {
uint8_t serial_smart_audio_read_byte() {
for (uint32_t timeout = 0x10000; USART_GetFlagStatus(USART.channel, USART_FLAG_RXNE) == RESET;)
if (!timeout--)
- return;
+ return 0;
return USART_ReceiveData(USART.channel);
}
|
esp_netif: Make GARP default netif flags only if enabled in lwip
Closes | @@ -17,9 +17,16 @@ extern "C" {
// Macros to assemble master configs with partial configs from netif, stack and driver
//
+#ifdef CONFIG_LWIP_ESP_GRATUITOUS_ARP
+// If GARP enabled in menuconfig (default), make it also a default config for common netifs
+#define ESP_NETIF_DEFAULT_ARP_FLAGS (ESP_NETIF_FLAG_GARP)
+#else
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.