message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
Improve page balancing function (in-daemon)
match the python changes for the scripts/memcached-automove copy of the
algorithm. | struct window_data {
uint64_t age;
uint64_t dirty;
- uint64_t evicted;
+ float evicted_ratio;
+ uint64_t evicted_seen; // if evictions were seen at all this window
};
typedef struct {
@@ -63,7 +64,8 @@ static void window_sum(struct window_data *wd, struct window_data *w, uint32_t s
struct window_data *d = &wd[x];
w->ag... |
python: revert changes | @@ -71,7 +71,6 @@ typedef struct
PyObject * instance;
int printError;
int shutdown;
- int subinterpreter;
} moduleData;
static int Python_AppendToSysPath (const char * path)
@@ -163,7 +162,6 @@ static void Python_Shutdown (moduleData * data)
/* destroy python if plugin isn't used anymore */
if (Py_IsInitialized ())
{
-... |
Found/fixed trivial variable use bug | @@ -507,7 +507,7 @@ ThresholdsCheck(
if (SensorInfo.MediaTempShutdownThresh < MediaTemperatureThreshold) {
APPEND_RESULT_TO_THE_LOG(pDimm, STRING_TOKEN(STR_FW_MEDIA_TEMPERATURE_THRESHOLD_ERROR), EVENT_CODE_903, DIAG_STATE_MASK_WARNING, ppResultStr, pDiagState,
- pDimm->DeviceHandle.AsUint32, ControllerTemperatureThresh... |
Ensure lua state is closed even if errors occur | @@ -67,6 +67,7 @@ liftLua1 f x = liftLua $ \l -> f l x
luaState :: Lua LuaState
luaState = ask
--- | Run lua computation with custom lua state.
+-- | Run lua computation with custom lua state. Errors are left unhandled, the
+-- caller of this function is responsible to catch lua errors.
runLuaWith :: LuaState -> Lua a ... |
MIPS64: Fix defined-but-not-used errors with WEBP_REDUCE_CSP | @@ -264,6 +264,7 @@ static void YuvToBgr(int y, int u, int v, uint8_t* const bgr) {
bgr[2] = Clip8(r1 >> 6);
}
+#if !defined(WEBP_REDUCE_CSP)
static void YuvToRgb565(int y, int u, int v, uint8_t* const rgb) {
const int y1 = MultHi(y, 19077);
const int r1 = y1 + MultHi(v, 26149) - 14234;
@@ -306,6 +307,7 @@ static void ... |
Java: fixing configure errors reporting. | @@ -84,11 +84,12 @@ if [ -n "${NXT_JAVA_HOME}" ]; then
NXT_JAVA="${NXT_JAVA_HOME}/bin/java"
else
- $echo -n "checking for java executable"
+ $echo -n "checking for java executable ..."
$echo "checking for java executable ..." >> $NXT_AUTOCONF_ERR
NXT_JAVA=`which java || :`
if [ -z "$NXT_JAVA" -o ! -x "$NXT_JAVA" ]; the... |
Refactor fill-case of md_copy2 | @@ -644,6 +644,68 @@ void md_copy2(unsigned int D, const long dim[D], const long ostr[D], void* optr,
#ifdef USE_CUDA
bool use_gpu = cuda_ondevice(optr) || cuda_ondevice(iptr);
+
+#if 1
+ // less calls for filling-like copies
+
+ long tostr_fill[D];
+ long tistr_fill[D];
+ long tdims_fill[D];
+
+ md_copy_strides(D, tos... |
dedicated logic for rx_spektrum_bind | @@ -967,27 +967,34 @@ void findprotocol(void) {
// Send Spektrum bind pulses to a GPIO e.g. TX1
void rx_spektrum_bind(void) {
+#define SPECTRUM_BIND_PIN usart_port_defs[profile.serial.rx].rx_pin
+#define SPECTRUM_BIND_PORT usart_port_defs[profile.serial.rx].rx_pin
+
+ if (profile.serial.rx == USART_PORT_INVALID) {
+ re... |
[ivshmem] Request mmap fixed
This parameter was optional, but now causes such an error: "IOCTL_IVSHMEM_MMAP: Invalid input size, expected 1 but got 0" | @@ -101,9 +101,11 @@ int main()
printf("Size: %I64u\n", size);
TEST_START("IOCTL_IVSHMEM_REQUEST_MMAP");
+ IVSHMEM_MMAP_CONFIG config;
+ config.cacheMode = IVSHMEM_CACHE_NONCACHED;
IVSHMEM_MMAP map;
ZeroMemory(&map, sizeof(IVSHMEM_MMAP));
- if (!DeviceIoControl(devHandle, IOCTL_IVSHMEM_REQUEST_MMAP, NULL, 0, &map, size... |
test-suite: fortran/mpi update to avoid interface mismatch errors | C Ping-pong with MPI + I/O
- include 'mpif.h'
+c include 'mpif.h'
+ use mpi
integer BUFFSIZE, MSGSIZE, error, rank, size, dest, i
integer status(MPI_STATUS_SIZE), NITERS, retsize
|
HW: More generic pattern for modification of AXI ID width parameter in hardware/setup/patch_vhd.sh | @@ -9,6 +9,6 @@ fi
NAME=`basename $2`
if ([ "$NAME" == "psl_accel_sim.vhd" ] || [ "$NAME" == "psl_accel_syn.vhd" ]); then
- sed -i 's/C_AXI_CARD_MEM0_ID_WIDTH : integer := 1/C_AXI_CARD_MEM0_ID_WIDTH : integer := '$NUM_OF_ACTIONS'/' $1/$2
- sed -i 's/C_AXI_HOST_MEM_ID_WIDTH : integer := 1/C_AXI_HOST_MEM_ID_WIDTH : integ... |
relay: document -U in usage message | @@ -329,6 +329,7 @@ do_usage(char *name, int exitcode)
printf(" -L server max stalls, defaults to %d\n", maxstalls);
printf(" -S statistics sending interval in seconds, defaults to 60\n");
printf(" -B connection listen backlog, defaults to 32\n");
+ printf(" -U socket receive buffer size, max/min/default values depend ... |
Recognise in X509_certificate_type | @@ -41,6 +41,9 @@ int X509_certificate_type(const X509 *x, const EVP_PKEY *pkey)
case EVP_PKEY_EC:
ret = EVP_PK_EC | EVP_PKT_SIGN | EVP_PKT_EXCH;
break;
+ case NID_ED25519:
+ ret = EVP_PKT_SIGN;
+ break;
case EVP_PKEY_DH:
ret = EVP_PK_DH | EVP_PKT_EXCH;
break;
|
http3::accept_hashkey_flatten_address missing break in switch/case | @@ -360,6 +360,7 @@ static uint8_t *accept_hashkey_flatten_address(uint8_t *p, quicly_address_t *add
break;
case AF_UNSPEC:
*p++ = 0;
+ break;
default:
h2o_fatal("unknown protocol family");
break;
|
Delete fd members of dumpParser object
Refactor dumpParser.py for encapsulation
Use 'with' statement to make sure fd is closed after use | @@ -67,7 +67,6 @@ class dumpParser:
# As well as open using NM utility so that, we can read the symbols easily
if self.elf is not None:
self.elf_file_fd = open(elf, 'rb')
- self.elf_file_fd_nm = os.popen(self.nm_path + ' -n ' + elf)
if not self.elf_file_fd:
print('Failed to open {0}'.format(elf))
return None
@@ -91,8 +... |
Update fw_update comments. | #
# NOTE: Older fimware versions are no longer supported by the host driver.
# NOTE: The latest firmware (19.6.1) only works on ATWINC1500-MR210PB.
+# NOTE: Firmware is at <openmv-ide-install-dir>/share/qtcreator/firmware/WINC1500/winc_19_6_1.bin
import network
|
Use better test macro | @@ -777,7 +777,7 @@ void mpi_core_cond_assign( data_t * input_X,
size_t copy_limbs = CHARS_TO_LIMBS( input_len );
size_t len = limbs * sizeof( mbedtls_mpi_uint );
- TEST_ASSERT( limbs_X == limbs_Y );
+ TEST_EQUAL( limbs_X, limbs_Y );
TEST_ASSERT( copy_limbs <= limbs );
ASSERT_ALLOC( X, len );
@@ -836,7 +836,7 @@ void m... |
Make ya.conf.json valid again | },
"lkvm": {
"description": "kvmtool is a userland tool for creating and controlling KVM guests"
- },
+ }
},
"toolchain": {
"msvc2017-i686": {
|
hsa: set connected mode for udp server
Type: fix | @@ -531,6 +531,10 @@ vts_worker_init (vcl_test_server_worker_t * wrk)
if (wrk->listen_fd < 0)
vtfail ("vppcom_session_create()", wrk->listen_fd);
+ if (vsm->cfg.proto == VPPCOM_PROTO_UDP)
+ {
+ vppcom_session_attr (wrk->listen_fd, VPPCOM_ATTR_SET_CONNECTED, 0, 0);
+ }
if (vsm->cfg.proto == VPPCOM_PROTO_TLS
|| vsm->cfg.... |
apps/cmp.c: Improve diagnostics on -server URL parse error | @@ -1834,8 +1834,10 @@ static int setup_client_ctx(OSSL_CMP_CTX *ctx, ENGINE *engine)
CMP_err("missing -server option");
goto err;
}
- if (!OSSL_HTTP_parse_url(opt_server, &server, &port, &portnum, &path, &ssl))
+ if (!OSSL_HTTP_parse_url(opt_server, &server, &port, &portnum, &path, &ssl)) {
+ CMP_err1("cannot parse -s... |
[platform-stm32f4xx] Updata chip defenition | @@ -14,16 +14,16 @@ ARM_CPU := cortex-m4
# TODO: integrate better with platform/stm32f4xx/CMSIS/stm32f4xx.h
ifeq ($(STM32_CHIP),stm32f407)
-GLOBAL_DEFINES += STM32F40_41xxx
+GLOBAL_CFLAGS=-DSTM32F40_41xxx=1
FOUND_CHIP := true
endif
ifeq ($(STM32_CHIP),stm32f417)
FOUND_CHIP := true
-GLOBAL_DEFINES += STM32F40_41xxx
+GLO... |
[org] list of parameters in cg file for SDF | @@ -1612,6 +1612,42 @@ Steve, Vincent.
*** Missing devel for Siconos/Gazebo
+ SDF, siconos configuration
profile in SDF for siconos ?
+ configuration file for siconos hdf5, xml, without various profile serializatoion xml
+
+ - time step
+ - Newton tolerance, nb iterations
+ - osi class
+ - onsnp
+ - onsnp solver, toler... |
Allow all clusters to be used for button maps | @@ -74,7 +74,7 @@ QMap<QString, quint16> loadButtonMapClustersJson(const QJsonDocument &buttonMaps
DBG_Printf(DBG_INFO, "[ERROR] - Key #%d for object 'clusters' is no string or too long. Skipping entry...\n", counter);
continue;
}
- else if (!i.value().isDouble() || i.value().toDouble() > 2000)
+ else if (!i.value().is... |
kernel: only allow sys_identify_cap() when target is L1 CNode | @@ -678,6 +678,10 @@ struct sysret sys_identify_cap(struct capability *root, capaddr_t cptr,
return SYSRET(SYS_ERR_INVALID_USER_BUFFER);
}
+ if (root->type != ObjType_L1CNode) {
+ return SYSRET(SYS_ERR_CNODE_NOT_ROOT);
+ }
+
struct capability *thecap;
// XXX: what's the correct caprights here?
err = caps_lookup_cap(roo... |
apptrace: fix SystemView example test
add trace svdat file to artifacts | -# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
+# SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Unlicense OR CC0-1.0
import os.path
import time
@@ -7,8 +7,6 @@ import pexpect.fdpexpect
import pytest
from pytest_embedded_idf import IdfDut
-TEMP_FILE... |
from_parts generated methods | @@ -144,7 +144,7 @@ impl<'de> serde::Deserialize<'de> for Sbp {
}
impl Sbp {
- /// Parse a message from a [Frame](crate::Frame).
+ /// Parse a message from given fields.
///
/// # Example
///
@@ -152,35 +152,33 @@ impl Sbp {
/// use std::convert::TryInto;
///
/// use sbp::messages::logging::MsgLog;
- /// use sbp::{Fram... |
http_static: add "http static cache clear" CLI
Useful to force content reloads
Type: feature | @@ -1656,6 +1656,81 @@ VLIB_CLI_COMMAND (http_show_static_server_command, static) =
};
/* *INDENT-ON* */
+static clib_error_t *
+http_clear_static_cache_command_fn (vlib_main_t * vm,
+ unformat_input_t * input,
+ vlib_cli_command_t * cmd)
+{
+ http_static_server_main_t *hsm = &http_static_server_main;
+ file_data_cache... |
use colemak keyboard by default | #include "kb.h"
#include "kb_us.h"
+#include "kb_colemak.h"
#include <std/common.h>
#include <std/std.h>
#include <kernel/interrupts/interrupts.h>
@@ -16,7 +17,7 @@ void kb_install() {
printf_info("Initializing keyboard driver...");
interrupt_setup_callback(INT_VECTOR_IRQ1, &kb_callback);
- switch_layout(&kb_us);
+ swi... |
zephyr/projects/herobrine/src/usbc_config.c: Format with clang-format
BRANCH=none
TEST=none | #define CPRINTS(format, args...) cprints(CC_USBCHARGE, format, ##args)
#define CPRINTF(format, args...) cprintf(CC_USBCHARGE, format, ##args)
-
/* GPIO Interrupt Handlers */
void tcpc_alert_event(enum gpio_signal signal)
{
@@ -54,9 +53,9 @@ void tcpc_alert_event(enum gpio_signal signal)
static void usba_oc_deferred(voi... |
win32: another trying with appveyor | @@ -3,7 +3,7 @@ image: Visual Studio 2015
platform: x86
clone_folder: C:\TAU\rhodes
environment:
- QTDIR: C:\Qt\5.8\msvc2013
+ QTDIR: C:\Qt\5.8\
matrix:
- win32_rhosimulator:
testable_application_repository: https://github.com/rhomobile/RMS-Testing.git
|
added handling for WNOHANG | @@ -46,7 +46,11 @@ Pwait(lua_State *L)
if (pid == -1)
return pusherror(L, NULL);
lua_pushinteger(L, pid);
- if (WIFEXITED(status))
+ if(pid == 0){
+ lua_pushliteral(L,"running");
+ return 2
+ }
+ else if (WIFEXITED(status))
{
lua_pushliteral(L,"exited");
lua_pushinteger(L, WEXITSTATUS(status));
|
Adds zlib1g-dev Debian package build dependency
When building from source in Debian, zlib1g-dev is needed or else
'/usr/bin/ld: cannot find -lz' error will occur. | @@ -210,7 +210,7 @@ apt-get -t jessie-backports install linux-base linux-image-4.8.0-0.bpo.2-amd64
apt-get install debhelper cmake libllvm3.8 llvm-3.8-dev libclang-3.8-dev \
libelf-dev bison flex libedit-dev clang-format-3.8 python python-netaddr \
python-pyroute2 luajit libluajit-5.1-dev arping iperf netperf ethtool \... |
hv: coding style: refine find_vcpuid_entry
1) add local_find_vcpuid_entry to find whether a cpuid leaf exist
in vcpuid cache entries.
2) find_vcpuid_entry will return the found entry if local_find_vcpuid_entry
return is not null. Otherwise, call local_find_vcpuid_entry again
when necessary.
In this case, there could el... | #include <hypervisor.h>
-static inline struct vcpuid_entry *find_vcpuid_entry(const struct acrn_vcpu *vcpu,
- uint32_t leaf_arg, uint32_t subleaf)
+static inline struct vcpuid_entry *local_find_vcpuid_entry(const struct acrn_vcpu *vcpu,
+ uint32_t leaf, uint32_t subleaf)
{
uint32_t i = 0U, nr, half;
struct vcpuid_entry... |
nimble/ll: Fix ble_ll_sync_rx_isr_end return value
ble_ll_sync_current_sm_over() already disables PHY so there is no
need to do that again when isr_end callback returns. This saves few
us on slow MCUs like CM0. | @@ -748,9 +748,10 @@ ble_ll_sync_rx_isr_end(uint8_t *rxbuf, struct ble_mbuf_hdr *rxhdr)
ble_ll_event_send(&g_ble_ll_sync_sm_current->sync_ev_end);
}
+ /* PHY is disabled here */
ble_ll_sync_current_sm_over();
- return -1;
+ return 1;
}
/**
|
doc: todo small changes | @@ -54,16 +54,31 @@ The following section lists news about the [modules](https://www.libelektra.org/
### <<Plugin1>>
+- <<TODO>>
+- <<TODO>>
+- <<TODO>>
+
+
### <<Plugin2>>
+- <<TODO>>
+- <<TODO>>
+- <<TODO>>
+
+
### <<Plugin3>>
+- <<TODO>>
+- <<TODO>>
+- <<TODO>>
+
## Libraries
-The text below summarizes updates to th... |
remove duplicate and outdated gnu example | \subsection{3rd Party Libraries and Tools} \label{sec:3rdparty}
\input{common/third_party_libs_intro}
-%----------------
-% SLES specific
-%----------------
-
-\begin{lstlisting}[language=bash,keepspaces=true,keywords={}]
-[sms](*\#*) zypper search -t package petsc-gnu-*-ohpc
-Loading repository data...
-Reading instal... |
listbox_get_selected_file1: iterate / don't use a callback function..
gtk_tree_selection_selected_foreach() is more suitable for a GtkTreeStore
see src/gtk/bookmarks.c | @@ -555,36 +555,30 @@ listbox_select_all_files (gftp_window_data *wdata) {
// ==============================================================
-/*
- listbox_get_selected_file1()
- retrieve existing gftp fileinfo / does not create a glist..
- https://developer.gnome.org/gtk2/stable/GtkTreeSelection.html#gtk-tree-selection... |
crypto: initialize result variable | @@ -193,7 +193,7 @@ int flb_crypto_transform(struct flb_crypto *context,
unsigned char *output_buffer,
size_t *output_length)
{
- int result;
+ int result = FLB_CRYPTO_BACKEND_ERROR;
if (context == NULL) {
return FLB_CRYPTO_INVALID_ARGUMENT;
|
removed wps debug info | @@ -414,8 +414,6 @@ wpsd = (wps_t*)(eapext->data);
if((memcmp(wpsd->vid, WPS_VENDOR, sizeof(wpsd->vid)) != 0) || (be32toh(wpsd->type) != WPS_SIMPLECONF))
return 0;
-printf("%ld\n", EAPEXT_SIZE);
-
int vtagl = be16toh(eapext->eaplen);
vtag = (vtag_t*)(wpsd->tags);
while( 0 < vtagl)
|
put the janet core api "map" fn under the name `iter/map`
avoids name collision with the tic80 map function. Could have just as easily
done the same to that one, but chances are we'll be using the tic80 map more
often. | @@ -1033,7 +1033,15 @@ static bool initJanet(tic_mem* tic, const char* code)
CurrentMachine = core;
core->currentVM = (JanetTable*)janet_core_env(NULL);
+
+ // Both the janet core lib and tic api define a `map` function
+ // So we give the janet core lib one the new name `iter/map`.
+ janet_dostring(core->currentVM, "(... |
host/mesh: Remove krp param check
param can never be NULL, so this check is redundant. Coverity complains
about this, as the param variable is accessed before the check, which
would be wrong if param could be NULL.
This is port of | @@ -134,8 +134,7 @@ static int krp_status(struct bt_mesh_model *model, struct bt_mesh_msg_ctx *ctx,
ctx->net_idx, ctx->app_idx, ctx->addr, buf->om_len,
bt_hex(buf->om_data, buf->om_len));
- if (!bt_mesh_msg_ack_ctx_match(&cli->ack_ctx, OP_KRP_STATUS, ctx->addr,
- (void **)¶m)) {
+ if (!bt_mesh_msg_ack_ctx_match(&cl... |
Documentation: Rephrase sentences | @@ -170,9 +170,9 @@ static inline KeySet *elektraYajlContract()
}
```
-It basically only contains the symbols to be exported (that are
-dependent on your functions to be available) and the plugin version
-information that is always defined to the macro `PLUGINVERSION`.
+It basically only contains the symbols to be expo... |
in_opentelemetry: set default OTLP/HTTP port to 4318 | #include "opentelemetry.h"
#include "http_conn.h"
+/* default HTTP port for OTLP/HTTP is 4318 */
+#define OTLP_HTTP_PORT 4318
+
struct flb_opentelemetry *opentelemetry_config_create(struct flb_input_instance *ins)
{
int ret;
@@ -43,8 +46,8 @@ struct flb_opentelemetry *opentelemetry_config_create(struct flb_input_instan... |
Replace with lwesp | * \ref lwesp_mem_calloc, \ref lwesp_mem_realloc and \ref lwesp_mem_free
*
* \note Function declaration follows standard C functions `malloc, calloc, realloc, free`.
- * Declaration is available in `esp/lwesp_mem.h` file. Include this file to final
+ * Declaration is available in `lwesp/lwesp_mem.h` file. Include this f... |
Fix `run_pending_requests` state to expect a state strictly below
SEND_HEADERS for the stream (for streaming bodies) | @@ -190,7 +190,7 @@ static void run_pending_requests(h2o_http2_conn_t *conn)
conn->num_streams._request_body_in_progress++;
stream->_conn_stream_in_progress = 1;
} else {
- if (stream->state <= H2O_HTTP2_STREAM_STATE_SEND_HEADERS) {
+ if (stream->state < H2O_HTTP2_STREAM_STATE_SEND_HEADERS) {
h2o_http2_stream_set_state... |
Create friendlier default sensor names without ZHA prefix | @@ -2651,14 +2651,12 @@ void DeRestPluginPrivate::addSensorNode(const deCONZ::Node *node, const SensorFi
if (sensorNode.name().isEmpty())
{
- if (type.endsWith(QLatin1String("Switch")))
+ QString name = type;
+ if (name.startsWith("ZHA"))
{
- sensorNode.setName(QString("Switch %1").arg(sensorNode.id()));
- }
- else
- {... |
Fix range checking | @@ -232,7 +232,7 @@ int main(int argc, char *argv[])
int rc = 1;
int i, iter = 1;
int timeout = ACTION_WAIT_TIME;
- uint32_t size = (4 * KILO_BYTE);
+ long size = (4 * KILO_BYTE);
uint64_t begin = 0;
uint8_t pattern = 0x0;
int func = ACTION_CONFIG_MEMSET_H;
@@ -292,6 +292,15 @@ int main(int argc, char *argv[])
break;
c... |
cr50: add rollback command
In DEV, it's necessary to rollback to reenter prod signed
images. Let's make this reasonably easy.
BRANCH=cr50
TEST=CR50_DEV fw does roll back to prod.. | @@ -1504,3 +1504,17 @@ int chip_factory_mode(void)
return mode_set & 1;
}
+
+#ifdef CR50_DEV
+static int command_rollback(int argc, char **argv)
+{
+ system_ensure_rollback();
+ ccprintf("Rebooting to alternate RW due to manual request\n");
+ cflush();
+ system_reset(0);
+
+ return EC_SUCCESS;
+}
+DECLARE_CONSOLE_COMMA... |
host/gap: fix doxygen for ble_gap_ext_disc()
Documentation for the parameters `filter_duplicates` and
`filter_policy` for ble_gap_ext_disc() was missing. | @@ -1592,6 +1592,16 @@ int ble_gap_disc(uint8_t own_addr_type, int32_t duration_ms,
* its last Scan Duration until it begins the
* subsequent Scan Duration. Specify 0 to scan
* continuously. Units are 1.28 second.
+ * @param filter_duplicates Set to enable packet filtering in the
+ * controller
+ * @param filter_policy... |
Fix function override for inkGameController | #include "Scripting.h"
#include <reverse/StrongReference.h>
#include <reverse/RTTIHelper.h>
+#include <reverse/RTTILocator.h>
static FunctionOverride* s_pOverride = nullptr;
+static RTTILocator s_inkGameControllerType("gameuiWidgetGameController");
using TRunPureScriptFunction = bool (*)(RED4ext::CClassFunction* apFunc... |
Activate channels for SPI, I2C | /*
* I2C driver system settings.
*/
-#define STM32_I2C_USE_I2C1 FALSE
+#define STM32_I2C_USE_I2C1 TRUE
#define STM32_I2C_USE_I2C2 FALSE
#define STM32_I2C_USE_I2C3 FALSE
#define STM32_I2C_BUSY_TIMEOUT 50
/*
* SPI driver system settings.
*/
-#define STM32_SPI_USE_SPI1 FALSE
+#define STM32_SPI_USE_SPI1 TRUE
#define STM32_... |
[kernel] fix wrong computation in FOLTIDS
thanks for the bug report | @@ -439,6 +439,7 @@ void EulerMoreauOSI::computeW(double time, DynamicalSystem& ds,
}
// Remark: W is not LU-factorized here.
// Function PLUForwardBackward will do that if required.
+ DEBUG_EXPR(W.display());
DEBUG_END("EulerMoreauOSI::computeW(...)\n");
}
@@ -543,6 +544,7 @@ double EulerMoreauOSI::computeResidu()
fol... |
docs - note some aggregate and window function limitations | href="../topics/functions-operators.xml#topic29/in204913"/>.</li>
<li id="in200915">Greenplum Database does not support DISTINCT
with multiple input expressions.</li>
+ <li id="in2009151">Greenplum Database does not support specifying an
+ aggregate function as an argument to another aggregate function.</li>
+ <li id="... |
EIP712 - Extra fixes from security review | @@ -452,8 +452,13 @@ bool set_struct_name(uint8_t length, const uint8_t *const name) {
apdu_response_code = APDU_RESPONSE_CONDITION_NOT_SATISFIED;
return false;
}
+
// increment number of structs
- *(typed_data->structs_array) += 1;
+ if ((*(typed_data->structs_array) += 1) == 0) {
+ PRINTF("EIP712 Structs count overfl... |
hfuzz: repeat libhfuzz.a | @@ -264,7 +264,6 @@ static int ldMode(int argc, char **argv)
commonOpts(&j, args);
- /* Repeat it, just in case anything late needs symbols from libhfuzz.a */
args[j++] = LHFUZZ_A_PATH;
/* libcommon.a will use it when compiled with clang */
@@ -278,6 +277,9 @@ static int ldMode(int argc, char **argv)
args[j++] = argv[i... |
nvs_flash: Fix typo in README.rst
Merges
This should read "except for the new key-value pair" instead of
"expect for the new key-value pair". | @@ -51,7 +51,7 @@ NVS is not directly compatible with the ESP32 flash encryption system. However,
If NVS encryption is not used, it is possible for anyone with physical access to the flash chip to alter, erase, or add key-value pairs. With NVS encryption enabled, it is not possible to alter or add a key-value pair and ... |
bootloader: Fix issue - bs->app_count is zero but ota_data have valid entry
If we have the partition table without any ota_apps but in ota_data have
valide entry, in this case we get an error(hang). This commit fix this
case. If bs->app_count is zero when selecting the factory app.
Closes | @@ -211,8 +211,8 @@ int bootloader_utility_get_selected_boot_partition(const bootloader_state_t *bs)
bootloader_munmap(ota_select_map);
ESP_LOGD(TAG, "OTA sequence values A 0x%08x B 0x%08x", sa.ota_seq, sb.ota_seq);
- if(sa.ota_seq == UINT32_MAX && sb.ota_seq == UINT32_MAX) {
- ESP_LOGD(TAG, "OTA sequence numbers both ... |
Always use nix-style cabal commands | @@ -51,7 +51,7 @@ before_install:
install:
- echo "$(ghc --version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo '?')]"
- echo "$(cabal --version)"
- - cabal install --only-dependencies --enable-tests --disable-optimization
+ - cabal new-build --only-dependencies --enable-tests --disable-optimization
scrip... |
metadata-store: prevent infinite loop | ?. ?=([%group [~ [~ [@ [@ @]]]]] config.met)
~
=* res resource.u.u.feed.config.met
+ ?: =(our.bowl entity.res) ~
=- `[%pass /fix-feed %agent [our.bowl %graph-pull-hook] %poke -]
:- %pull-hook-action
!> ^- action:pull-hook
|
set sp_rate to 80 in sdr_transceiver_emb_122_88/app/sdr-transceiver-emb.c | @@ -230,7 +230,7 @@ int main()
RXASetPassband(0, cutoff[mode][filter][0], cutoff[mode][filter][1]);
SetTXABandpassFreqs(1, cutoff[mode][filter][0], cutoff[mode][filter][1]);
- *sp_rate = 125;
+ *sp_rate = 80;
*sp_total = 32767;
*sp_scale = 1024;
*sp_corr = 8.68589;
|
Add flags to voice-info to know if the plugin will support overlapping notes | @@ -15,6 +15,12 @@ static const char CLAP_EXT_VOICE_INFO[] = "clap.voice-info.draft/0";
extern "C" {
#endif
+enum {
+ // Allows the host to send overlapping NOTE_ON events.
+ // The plugin will then rely upon the note_id to distinguish between them.
+ CLAP_VOICE_INFO_SUPPORTS_OVERLAPPING_NOTES = 1 << 0,
+};
+
typedef s... |
avx512f : added copyright info in avx512f.h
avx512f : added copyright info in avx512f.h | * Copyright:
* 2020 Evan Nemerson <evan@nemerson.com>
2020 Himanshi Mathur <himanshi18037@iiitd.ac.in>
+ 2020 Hidayat Khan <huk2209@gmail.com>
*/
#if !defined(SIMDE__AVX512F_H)
|
fix axis_oscilloscope | @@ -91,6 +91,7 @@ module axis_oscilloscope #
if(s_axis_tvalid)
begin
int_cntr_next = int_cntr_reg + 1'b1;
+ end
if(trg_flag)
begin
int_addr_next = int_cntr_reg;
@@ -98,7 +99,6 @@ module axis_oscilloscope #
int_case_next = 2'd3;
end
end
- end
// post-trigger recording
3:
|
If we don't set content_length, it won't add the header. | @@ -524,12 +524,6 @@ _http_start_respond(u3_hreq* req_u,
req_u->gen_u = gen_u;
- if ( c3y == complete ) {
- // XX: Joe says I may need to copy it from the header.
- //
- rec_u->res.content_length = 0;
- }
-
h2o_start_response(rec_u, &gen_u->neg_u);
_http_hgen_send(gen_u);
|
apps/system/utils: fix wrong conditional for netcmd and fscmd
SYSTEM_CMDS, FS_CMDS and NET_CMDS are separated commands sets.
They should be in SYSTEM_CMDS conditional. | @@ -73,6 +73,7 @@ endif
ifeq ($(CONFIG_SYSTEM_CMDS),y)
CSRCS += systemcmd.c
+endif
ifeq ($(CONFIG_FS_CMDS),y)
CSRCS += fscmd.c
@@ -98,8 +99,6 @@ ifeq ($(CONFIG_NETUTILS_TFTPC),y)
CSRCS += netcmd_tftpc.c
endif
-endif #CONFIG_TASH
-
ifeq ($(CONFIG_ENABLE_CPULOAD),y)
CSRCS += utils_cpuload.c
endif
|
Ignore new changes to sources | @@ -67,7 +67,9 @@ parallel-libs/mumps/SOURCES/MUMPS*.tar.gz
parallel-libs/opencoarrays/SOURCES/OpenCoarrays-*.tar.gz
parallel-libs/petsc/SOURCES/petsc-*.tar.gz
parallel-libs/ptscotch/SOURCES/scotch*.tar.gz
+parallel-libs/ptscotch/SOURCES/scotch*.bz2
parallel-libs/scalapack/SOURCES/scalapack-*.tgz
+parallel-libs/scalapa... |
mangle: use oldsz instead of run->dynamicFileSz | @@ -575,7 +575,7 @@ static void mangle_Resize(run_t* run, bool printable) {
newsz = oldsz + 8 - v;
break;
case 17 ... 32:
- newsz = run->dynamicFileSz;
+ newsz = oldsz;
break;
default:
LOG_F("Illegal value from util_rndGet: %" PRIu64, v);
|
sysdeps/managarm: treat CLOCK_MONOTONIC_COARSE as CLOCK_MONOTONIC | @@ -25,7 +25,7 @@ namespace mlibc {
int sys_clock_get(int clock, time_t *secs, long *nanos) {
// This implementation is inherently signal-safe.
- if(clock == CLOCK_MONOTONIC) {
+ if(clock == CLOCK_MONOTONIC || clock == CLOCK_MONOTONIC_COARSE) {
uint64_t tick;
HEL_CHECK(helGetClock(&tick));
*secs = tick / 1000000000;
@@... |
fix at_server_getchar spelling error | @@ -412,7 +412,7 @@ static rt_err_t at_cmd_get_name(const char *cmd_buffer, char *cmd_name)
return -RT_ERROR;
}
-static rt_err_t at_server_gerchar(at_server_t server, char *ch, rt_int32_t timeout)
+static rt_err_t at_server_getchar(at_server_t server, char *ch, rt_int32_t timeout)
{
rt_err_t result = RT_EOK;
@@ -595,7 ... |
trembyle: Increase CONFIG_UART_TX_BUF_SIZE
Increase console output buffer to avoid risk of losing output (eg
when tracing I2C) since we have the RAM available.
BRANCH=none
TEST=build | #undef CONFIG_PORT80_HISTORY_LEN
#define CONFIG_PORT80_HISTORY_LEN 256
+/* Increase console output buffer since we have the RAM available. */
+#undef CONFIG_UART_TX_BUF_SIZE
+#define CONFIG_UART_TX_BUF_SIZE 4096
+
#define I2C_PORT_TCPC0 NPCX_I2C_PORT0_0
#define I2C_PORT_TCPC1 NPCX_I2C_PORT1_0
#define I2C_PORT_BATTERY N... |
seed random number generator with current pid | @@ -1350,6 +1350,9 @@ initializer (void) {
parsing_spinner = new_gspinner ();
parsing_spinner->processed = &(logs->processed);
parsing_spinner->filename = &(logs->filename);
+
+ /* init random number generator */
+ srand (getpid ());
}
static char *
|
make sure all mangohud files are being uninstalled | @@ -168,7 +168,9 @@ clean() {
uninstall() {
[ "$UID" -eq 0 ] || exec sudo bash "$0" uninstall
rm -rfv "/usr/lib/mangohud"
+ rm -rfv "/usr/share/doc/mangohud"
rm -fv "/usr/share/vulkan/implicit_layer.d/mangohud.json"
+ rm -fv "/usr/share/vulkan/implicit_layer.d/MangoHud.json"
rm -fv "/etc/ld.so.conf.d/libmangohud.conf"
... |
specreader: ignore non-spec key
When reading specification, ignore all non-spec keys.
Fixes | @@ -162,9 +162,18 @@ SpecBackendBuilder SpecMountpointReader::readMountpointSpecification (KeySet con
void SpecReader::readSpecification (KeySet const & cks)
{
- KeySet ks (cks);
+ KeySet ks;
Key mp;
+ // only accept keys in 'spec' namespace
+ for (Key k : cks)
+ {
+ if (k.isSpec ())
+ {
+ ks.append (k);
+ }
+ }
+
ks.r... |
use old-style ruby syntax | @@ -910,14 +910,16 @@ namespace "config" do
begin
core_build_cfg = YAML.load_file(File.join( $builddir, 'config.yml'))
- rescue
- puts "Error while loading config file with maven dependencies " + File.join( $builddir, 'config.yml')
+ rescue Exception => e
+ $logger.warn "Can't read core build config: #{e.inspect}"
end
... |
Bugfix in HAL for LEDs. Static variable leds did not get updated. | @@ -38,6 +38,9 @@ static unsigned char leds;
static inline void
show_leds(unsigned char new_leds)
{
+
+ leds = new_leds;
+
leds_arch_set(new_leds);
}
/*---------------------------------------------------------------------------*/
|
server session BUGFIX always reset last session on delete | @@ -841,13 +841,11 @@ remove:
--ps->session_count;
if (i < ps->session_count) {
ps->sessions[i] = ps->sessions[ps->session_count];
- if (ps->last_event_session == i) {
- ps->last_event_session = 0;
- }
} else if (!ps->session_count) {
free(ps->sessions);
ps->sessions = NULL;
}
+ ps->last_event_session = 0;
return 0;
}
... |
Fix OpenVR driver; | @@ -678,7 +678,7 @@ static ModelData* openvr_newModelData(Device device, bool animated) {
model->buffers[2 * i + 0] = (ModelBuffer) {
.blob = 0,
.size = vertexCount * vertexSize,
- .stride = vertexSize
+ .stride = vertexSize,
.data = (char*) vertices
};
|
OcDataHubLib: Drop invalid TODO | @@ -271,9 +271,6 @@ UpdateDataHub (
DataHubSetAppleMiscData (DataHub, OC_SYSTEM_UUID, &SystemId, sizeof (SystemId));
}
DataHubSetAppleMiscAscii (DataHub, OC_BOARD_PRODUCT, Data->BoardProduct);
- //
- // TODO: Clover uses DataHubSetAppleProcessorData equivalent here, check if legit.
- //
DataHubSetAppleMiscData (DataHub... |
Use raw string + binary matching for URL regex.
Long URLs are allowed only if they are alone on their lines. | @@ -201,6 +201,8 @@ class ChangeLog:
# a version that is not yet released. Something like "3.1a" is accepted.
_version_number_re = re.compile(br'[0-9]+\.[0-9A-Za-z.]+')
_incomplete_version_number_re = re.compile(br'.*\.[A-Za-z]')
+ _only_url_re = re.compile(br'^\s*\w+://\S+\s*$')
+ _has_url_re = re.compile(br'.*://.*')... |
Fix some literals in Curve:evaluate; | @@ -17,19 +17,19 @@ static void evaluate(float* restrict P, size_t n, float t, vec3 p) {
p[2] = P[2] + (P[6] - P[2]) * t;
p[3] = P[3] + (P[7] - P[3]) * t;
} else if (n == 3) {
- float t1 = (1 - t);
+ float t1 = (1.f - t);
float a = t1 * t1;
- float b = 2 * t1 * t;
+ float b = 2.f * t1 * t;
float c = t * t;
p[0] = a * P... |
graph-create thread: fix metadata to metadatum rename | /- spider,
graph=graph-store,
- *metadata-store,
+ met=metadata-store,
*group,
group-store,
inv=invite-store
::
:: Setup metadata
::
-=/ =metadata
- %* . *metadata
+=/ =metadatum:met
+ %* . *metadatum:met
title title.action
description description.action
date-created now.bowl
creator our.bowl
module module.action
==
-=... |
[Rust] Implement file reading in the file server | extern crate alloc;
extern crate libc;
+use alloc::str::{self, from_utf8};
+
use axle_rt::amc_register_service;
use axle_rt::printf;
use axle_rt::AmcMessage;
@@ -14,10 +16,10 @@ use axle_rt::{amc_message_await_untyped, amc_message_send};
use axle_rt_derive::ContainsEventField;
use cstr_core::CString;
-use file_manager_... |
syscall: Fix definition of syscall numbers
Remove a dependency of prctl, 'CONFIG_TASK_NAME_SIZE' because prctl has many other functionalities.
SYS_maxsyscall should be greater than used numbers for syscall. | #define SYS_setsockopt (__SYS_network + 12)
#define SYS_shutdown (__SYS_network + 13)
#define SYS_socket (__SYS_network + 14)
-#define SYS_nnetsocket (__SYS_network + 15)
+#define __SYS_prctl (__SYS_network + 15)
#else
-#define SYS_nnetsocket __SYS_network
+#define __SYS_prctl __SYS_network
#endif
-/* The following is ... |
ixfr-out, fix delete of remaining files on error. | @@ -1176,7 +1176,7 @@ static void ixfr_delete_rest_files(struct zone* zone, struct ixfr_data* from,
{
size_t prevcount = 0;
struct ixfr_data* data = from;
- while(data && data->file_num == 0) {
+ while(data) {
if(data->file_num != 0) {
(void)ixfr_unlink_it(zone, zfile, data->file_num, 0);
data->file_num = 0;
@@ -1260,7... |
NaCl over UDP test | @@ -70,6 +70,7 @@ int main() {
rc = hclose(s0);
errno_assert(rc == 0);
+ /* Test wrong key. */
rc = ipc_pair(s);
errno_assert(rc == 0);
s0 = pfx_attach(s[0], 1, 0);
@@ -89,6 +90,38 @@ int main() {
rc = hclose(s0);
errno_assert(rc == 0);
+ /* Test sending via UDP. */
+ struct ipaddr addr0;
+ rc = ipaddr_local(&addr0, NU... |
Have example/zcat use the release edition | @@ -25,13 +25,32 @@ for a C compiler $cc, such as clang or gcc.
#include <errno.h>
#include <unistd.h>
+// Defining the WUFFS_CONFIG__MODULE* macros are optional, but it lets users of
+// the release/c/wuffs-etc/etc.c code whitelist which parts of Wuffs to build.
+// That C file contains the entire Wuffs standard libra... |
Coverity: explicit null dereference
Coverity is being pretty silly here but adding the explicit pointer checks
will stop a crash if something goes badly awry.
Fixes Coverity | @@ -53,6 +53,10 @@ static int test_fizzbuzz(void)
if (!TEST_size_t_eq(ossl_list_fizz_num(&a), na)
|| !TEST_size_t_eq(ossl_list_buzz_num(&b), nb)
+ || !TEST_ptr(ossl_list_fizz_head(&a))
+ || !TEST_ptr(ossl_list_fizz_tail(&a))
+ || !TEST_ptr(ossl_list_buzz_head(&b))
+ || !TEST_ptr(ossl_list_buzz_tail(&b))
|| !TEST_int_eq... |
Use VM_IDLE rather than expensive wait call before each loop of actor update script | @@ -112,7 +112,7 @@ const compileEntityEvents = (scriptSymbolName, input = [], options = {}) => {
if (!branch) {
scriptBuilder._packLocals();
if (loop && input.length > 0) {
- scriptBuilder.nextFrameAwait();
+ scriptBuilder.idle();
scriptBuilder._jump(loopId);
}
if (isFunction) {
|
pyocf: API for getting cleaning policy from cache | @@ -17,6 +17,7 @@ from ctypes import (
byref,
cast,
create_string_buffer,
+ POINTER,
)
from enum import IntEnum, auto
from datetime import timedelta
@@ -346,6 +347,22 @@ class Cache:
if c.results["error"]:
raise OcfError("Error changing cleaning policy", c.results["error"])
+ def get_cleaning_policy(self):
+ cleaning_p... |
Cirrus: Improve name of environment variable | @@ -9,18 +9,21 @@ task:
freebsd_instance:
image: freebsd-12-0-release-amd64
env:
- # We use `PLUGINS_KDB` instead of `PLUGINS`, since `pkg` interprets the environment variable `PLUGINS`.
- PLUGINS_KDB: 'ALL;-iconv;-filecheck' # Linking the iconv library fails: https://cirrus-ci.com/task/4923537438539776
+ PLUGINS: 'ALL... |
core: clarify new size of keyname on realloc | @@ -856,15 +856,16 @@ ssize_t keyAddBaseName (Key * key, const char * baseName)
key->keySize += len + 1;
}
+ const size_t newSize = key->keySize * 2;
if (test_bit (key->flags, KEY_FLAG_MMAP_KEY))
{
// key was in mmap region, clear flag and trigger malloc instead of realloc
- key->key = elektraMalloc (key->keySize * 2);... |
Docs: added missing columns to table pg_trigger | <entry colname="col4">The table referenced by an referential integrity
constraint.</entry>
</row>
+ <row>
+ <entry><codeph>tgconstrindid</codeph></entry>
+ <entry>oid</entry>
+ <entry><i>pg_class.oid</i></entry>
+ <entry>The index supporting a unique, primary key, or referential integrity
+ constraint.</entry>
+ </row>... |
[apps] Fix systolic_matrix_create() for non-multiple matrices | @@ -97,7 +97,6 @@ void systolic_matrix_allocate(systolic_matrix_t **syst_matrix,
*syst_matrix = new_matrix;
}
-// TODO: Copy over for non-multiple matrices -> Fill with 0 (memory overflow)
void systolic_matrix_create(systolic_matrix_t **syst_matrix, int32_t *matrix,
uint32_t num_rows, uint32_t num_cols) {
// Calculate ... |
rms/slurm: re-enable external pmix build configuration | %include %{_sourcedir}/OHPC_macros
%global _with_mysql 1
+%global _with_pmix --with-pmix=%{OHPC_ADMIN}/pmix
%define pname slurm
@@ -85,6 +86,8 @@ Obsoletes: slurm-lua%{PROJ_DELIM} slurm-munge%{PROJ_DELIM} slurm-plugins%{PROJ_D
%if 0%{?suse_version}
PreReq: %{insserv_prereq} %{fillup_prereq}
%endif
+BuildRequires: pmix%... |
odissey: add console_query_show() and parser tokens | @@ -57,6 +57,19 @@ typedef struct
machine_queue_t *response;
} od_msgconsole_t;
+enum
+{
+ OD_LSHOW,
+ OD_LSTATS
+};
+
+static od_keyword_t od_console_keywords[] =
+{
+ od_keyword("show", OD_LSHOW),
+ od_keyword("stats", OD_LSTATS),
+ { 0, 0, 0 }
+};
+
static inline int
od_console_show_stats(od_console_t *console, od_m... |
Added versionstrings | @@ -75,6 +75,11 @@ if (NOT PUPNP_VERSION_STRING)
endif()
project (PUPNP VERSION ${PUPNP_VERSION_STRING} LANGUAGES C)
+set (UPNP_VERSION_MAJOR ${PUPNP_VERSION_MAJOR})
+set (UPNP_VERSION_MINOR ${PUPNP_VERSION_MINOR})
+set (UPNP_VERSION_PATCH ${PUPNP_VERSION_PATCH})
+set (UPNP_VERSION_STRING ${PUPNP_VERSION_STRING})
+
inc... |
.travis.yml: Install GCC 7.x for coverage builds.
To get around false-positive strict aliasing errors. | @@ -104,6 +104,12 @@ jobs:
- stage: test
env: NAME="unix coverage build and tests"
install:
+ # Install gcc 7.x, as older version has glitchy strict alisasing warnings-as-errors
+ - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
+ - sudo apt-get update -qq || true
+ - sudo apt-get install -y gcc-7
+ - sudo upda... |
Add workaround for spurious clang warning | @@ -2615,7 +2615,7 @@ int main(int argc, char **argv) {
int init_grid_dim_y = 25, init_grid_dim_x = 57;
bool should_autosize_grid = true;
- Tui t = {0};
+ Tui t = {.file_name = NULL}; // Weird because of clang warning
t.undo_history_limit = 100;
t.softmargin_y = 1;
t.softmargin_x = 2;
|
Fix thumbnails in background select | @@ -43,7 +43,7 @@ class BackgroundSelect extends Component {
<div
className="Thumbnail"
style={{
- backgroundImage: `url("${assetFilename(
+ backgroundImage: `url("file://${assetFilename(
projectRoot,
"backgrounds",
backgroundsLookup[value]
|
correct gyro orientation geprcf405 | #define GYRO_SPI_PORT SPI_PORT3
#define GYRO_NSS PIN_A15
#define GYRO_INT PIN_C3
-#define GYRO_ORIENTATION GYRO_ROTATE_90_CCW
+#define GYRO_ORIENTATION GYRO_ROTATE_180
// RADIO
#ifdef SERIAL_RX
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.