message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
common/peripheral_charger.c: Format with clang-format
BRANCH=none
TEST=none | @@ -118,7 +118,8 @@ static void _clear_port(struct pchg *ctx)
}
__overridable void board_pchg_power_on(int port, bool on)
-{}
+{
+}
static enum pchg_state pchg_reset(struct pchg *ctx)
{
@@ -538,7 +539,6 @@ void pchg_irq(enum gpio_signal signal)
}
}
-
static void pchg_startup(void)
{
struct pchg *ctx;
@@ -630,8 +630,8 @... |
Fixed opae.admin.rpm dependency. | @@ -70,6 +70,7 @@ add_custom_target(opae.admin.tox
if (RPM_BUILD)
add_custom_target(opae.admin.rpm
COMMAND ${PYTHON_EXECUTABLE} setup.py bdist_rpm --release ${OPAE_ADMIN_RPM_RELEASE}
+ DEPENDS opae.admin
WORKING_DIRECTORY ${ADMIN_STAGE_DIR}
COMMENT "Building opae.admin Python RPM distribution"
)
|
Remove non-hermetic test | @@ -62,19 +62,5 @@ int main(void) {
ipaddr_str(&addr, buf);
assert(strcmp(buf, "::1") == 0);
- for(int hindex = 0; hindex < 4; hindex++) {
- static char *hostnames[] = {
- "large-dns-response-1k.lionet.info",
- "large-dns-response-2k.lionet.info",
- "large-dns-response-4k.lionet.info",
- "large-dns-response-8k.lionet.i... |
fix build error for Greengrass discovery task | <TargetName>aws_demos</TargetName>
<ToolsetNumber>0x4</ToolsetNumber>
<ToolsetName>ARM-ADS</ToolsetName>
- <pCCUsed>5060528::V5.06 update 5 (build 528)::ARMCC</pCCUsed>
+ <pCCUsed>5060750::V5.06 update 6 (build 750)::ARMCC</pCCUsed>
+ <uAC6>0</uAC6>
<TargetOption>
<TargetCommonOption>
<Device>M487JIDAE</Device>
<Restor... |
fix debug malloc compile | @@ -55,6 +55,10 @@ namespace NCudaLib {
return freeBytes;
}
+ void TryDefragment() {
+
+ }
+
template <typename T = char>
TMemoryBlock<T>* Create(ui64 size) {
return new TMemoryBlock<T>(size);
|
CoreValidation: Fixed TC_CoreFunc_IRQVect missing external declaration to ROM vector table. | @@ -194,6 +194,7 @@ Check expected behavior of interrupt vector relocation functions:
void TC_CoreFunc_IRQVect(void) {
#if defined(__VTOR_PRESENT) && __VTOR_PRESENT
/* relocate vector table */
+ extern const VECTOR_TABLE_Type __VECTOR_TABLE[48];
static VECTOR_TABLE_Type vectors[sizeof(__VECTOR_TABLE)/sizeof(__VECTOR_TA... |
imx6ull: Removed default stop after pagefault | @@ -29,7 +29,7 @@ BIN = ../phoenix-$(TARGET)
ifeq ($(DEBUG), 1)
CFLAGS = -Og
else ifneq (, $(findstring imx, $(TARGET)))
- CFLAGS = -Og -DNDEBUG -DPAGEFAULTSTOP
+ CFLAGS = -Og -DNDEBUG
else ifneq (, $(findstring stm32, $(TARGET)))
CFLAGS = -Os -DNDEBUG
else
|
VirtIO-FS: rework memory allocation for VirtQueues | @@ -79,19 +79,14 @@ NTSTATUS VirtFsEvtDevicePrepareHardware(IN WDFDEVICE Device,
// #1 - request queue
context->NumQueues = 2;
- context->VirtQueues = ExAllocatePoolUninitialized(NonPagedPool,
+ context->VirtQueues = ExAllocatePoolZero(NonPagedPool,
context->NumQueues * sizeof(struct virtqueue *),
VIRT_FS_MEMORY_TAG);
... |
Culling fixes | @@ -162,14 +162,13 @@ namespace carto {
cglib::vec3<double> pos1 = cglib::transform_point(cglib::vec3<double>(screenPos(0), screenPos(1), 1), invMVPMat);
cglib::ray3<double> ray(pos0, cglib::unit(pos1 - pos0));
- double t = 0;
+ double t = -1;
if (projectionSurface->calculateHitPoint(ray, 0, t)) {
+ t = std::min(t, sta... |
Add aliased SRAM2 region in the L496 memory map
The SRAM2 on the L496 devices is aliased at 0x2004000. With this change, it's possible to read the SRAM2 contents at the aliased addresses. | @@ -449,7 +449,7 @@ static const char* const memory_map_template_L496 =
"<memory-map>"
" <memory type=\"rom\" start=\"0x00000000\" length=\"0x%x\"/>" // code = sram, bootrom or flash; flash is bigger
" <memory type=\"ram\" start=\"0x10000000\" length=\"0x10000\"/>" // SRAM2 (64 KB)
- " <memory type=\"ram\" start=\"0x20... |
Re-enable now working replay files | @@ -34,18 +34,13 @@ endif()
# for a change that let LH be repositioned when it seemed the measurements were off but too many users reported this
# led perfectly fine LH positions being discarded.
SET(TEST_EXCLUSION_LIST
- ${CMAKE_CURRENT_BINARY_DIR}/libsurvive-extras-data/tests/tracker-bad-tracking.rec.gz
${CMAKE_CURRE... |
hw/drivers/lis2dh12: Fix build error | @@ -418,7 +418,7 @@ lis2dh12_spi_writelen(struct sensor_itf *itf, uint8_t addr, uint8_t *payload,
* requested is moret than 1
*/
if (len > 1) {
- addr |= LIS2DH12_SPI_ADR_INC;
+ addr |= LIS2DH12_SPI_ADDR_INC;
}
/* Select the device */
|
Ruby: simplified commands in ./configure script.
There is no reason to use printf instead of just print.
No functional changes. | @@ -56,20 +56,20 @@ nxt_found=no
if /bin/sh -c "$NXT_RUBY -v" >> $NXT_AUTOCONF_ERR 2>&1; then
- NXT_RUBY_RUBYHDRDIR=`$NXT_RUBY -r rbconfig -e 'printf("%s",RbConfig::CONFIG["rubyhdrdir"])'`
- NXT_RUBY_ARCHHDRDIR=`$NXT_RUBY -r rbconfig -e 'printf("%s",RbConfig::CONFIG["rubyarchhdrdir"])'`
- NXT_RUBY_SITEDIR=`$NXT_RUBY -r... |
Removed unneeded data being loading into player sprite memory | @@ -112,7 +112,6 @@ void SceneInit_b2()
SetBankedSpriteData(sprite_bank_ptr.bank, k, sprite_len, sprite_ptr + 1);
k += sprite_len;
}
- SetBankedSpriteData(sprite_bank_ptr.bank, 0, sprite_len, sprite_ptr + 1);
scene_load_ptr = scene_load_ptr + num_sprites;
}
|
adding new options for output | @@ -134,8 +134,21 @@ void NCB::CalcModelSingleHost(
size_t evalPeriod,
const TFullModel& model ) {
- CB_ENSURE(params.OutputPath.Scheme == "dsv", "Local model evaluation supports only \"dsv\" output file schema.");
- TOFStream outputStream(params.OutputPath.Path);
+ CB_ENSURE(params.OutputPath.Scheme == "dsv" || params... |
fixes race in _proxy_ward_close by unlinking early | @@ -2140,7 +2140,6 @@ _proxy_ward_free(uv_handle_t* han_u)
u3_ward* rev_u = han_u->data;
u3z(rev_u->sip);
- _proxy_ward_unlink(rev_u);
free(rev_u->non_u.base);
free(rev_u);
}
@@ -2160,6 +2159,8 @@ _proxy_ward_close_timer(uv_handle_t* han_u)
static void
_proxy_ward_close(u3_ward* rev_u)
{
+ _proxy_ward_unlink(rev_u);
+
... |
Update README.md
use the same order for 3 easys as the ones in the summery. | Orca is a bot framework that is designed with minimum dependencies to
make bot deployment deadly simple. The primary design goals are:
-- easy to debug (networking and logic) errors with extensive logging facilities.
-
- easy to reason about the code: we use the most native data structures,
the simplest algorithms, and... |
YAML CPP: Split conversion of maps and sequences | @@ -160,14 +160,21 @@ void convertNodeToKeySet (YAML::Node const & node, KeySet & mappings, Key & pare
auto key = createLeafKey (node, parent.getFullName ());
mappings.append (key);
}
- else if (node.IsMap () || node.IsSequence ())
+ else if (node.IsMap ())
{
for (auto element : node)
{
- Key key = node.IsMap () ? newK... |
lv_btnm: don't toggle if inactive | @@ -815,7 +815,8 @@ static lv_res_t lv_btnm_signal(lv_obj_t * btnm, lv_signal_t sign, void * param)
} else if(sign == LV_SIGNAL_RELEASED) {
if(ext->btn_id_pr != LV_BTNM_BTN_NONE) {
/*Toggle the button if enabled*/
- if(button_is_tgl_enabled(ext->ctrl_bits[ext->btn_id_pr])) {
+ if(button_is_tgl_enabled(ext->ctrl_bits[ex... |
Windows: Fix test eccodes_t_grib_ecc-979 | #include "grib_api_internal.h"
#include <math.h>
+#include <stdint.h>
/*
This is used by make_class.pl
@@ -167,7 +168,7 @@ static int is_approximately_equal(double a, double b, double epsilon)
return 0;
}
-static double eval_value_factor(long value, long factor)
+static double eval_value_factor(int64_t value, int64_t f... |
function no longer used | @@ -3331,15 +3331,6 @@ err:
#endif
static void count_connections(size_t *n_actives, size_t *n_idles, size_t *n_shutdowns)
-static int count_linklist(const h2o_linklist_t *list)
-{
- int count = 0;
- for (const h2o_linklist_t *node = list->next; node != list; node = node->next) {
- count++;
- }
- return count;
-}
-
{
si... |
added TP-Link TL-WN722N v2/v3 known as working | @@ -110,7 +110,7 @@ Manufacturers do change chipsets without changing model numbers. Sometimes they
This list is for information purposes only and should not be regarded as a binding presentation of the products:
| VENDOR MODEL | ID |
-| -------------------- | -----------------------------------------------------------... |
hv: vmconfig: minor fix about regression of commit 79cfb1
commit 79cfb1 forgot to add GUEST_FLAG_ prefix for LAPIC_PASSTHROUGH
in file arch/x86/configs/dnv-cb2/partition_config.h | #define VM0_CONFIG_NAME "PRE-LAUNCHED VM1 for DNV-CB2"
#define VM0_CONFIG_TYPE PRE_LAUNCHED_VM
#define VM0_CONFIG_PCPU_BITMAP (PLUG_CPU(0) | PLUG_CPU(2) | PLUG_CPU(4) | PLUG_CPU(6))
-#define VM0_CONFIG_FLAGS LAPIC_PASSTHROUGH | GUEST_FLAG_IO_COMPLETION_POLLING
+#define VM0_CONFIG_FLAGS GUEST_FLAG_LAPIC_PASSTHROUGH | GU... |
Use installbsd on AIX
(and fix misplaced parenthesis from previous commit). See | @@ -48,7 +48,7 @@ ifndef NO_CBLAS
@sed 's/common/openblas_config/g' cblas.h > "$(DESTDIR)$(OPENBLAS_INCLUDE_DIR)/cblas.h"
endif
-ifneq (($OSNAME), AIX)
+ifneq ($(OSNAME), AIX)
ifndef NO_LAPACKE
@echo Copying LAPACKE header files to $(DESTDIR)$(OPENBLAS_INCLUDE_DIR)
@-install -pm644 $(NETLIB_LAPACK_DIR)/LAPACKE/include/... |
landscape: prevent reflow jank in group summary on load | -import React from "react";
+import React, { useEffect, useState } from "react";
import {
Col,
Row,
@@ -75,15 +75,29 @@ export function JoinBody(props: { desc: JoinDesc }) {
const { ship, name } = resourceFromPath(group);
const invite = useInviteForResource(kind, ship, name);
+ const [override, setOverride] = useState(... |
Add component to build and test full config with stream cipher only | @@ -1277,6 +1277,7 @@ component_test_crypto_full_no_cipher () {
component_test_crypto_default_stream_cipher_only () {
msg "build: default with only stream cipher"
+ scripts/config.py crypto_full
# Disable all ciphers
# AEAD (controlled by the presence of one of GCM_C, CCM_C, CHACHAPOLY_C
scripts/config.py unset MBEDTLS... |
fixes for ncurses mouse versions | @@ -1202,7 +1202,9 @@ void ged_mouse_event(Ged* a, Usz vis_y, Usz vis_x, mmask_t mouse_bstate) {
a->is_draw_dirty = true;
}
}
- } else {
+ }
+#if NCURSES_MOUSE_VERSION != 1
+else {
if (mouse_bstate & BUTTON4_PRESSED) {
a->grid_scroll_y -= 1;
a->is_draw_dirty = true;
@@ -1211,6 +1213,7 @@ void ged_mouse_event(Ged* a, Us... |
zephyr/emul/emul_smart_battery.c: Format with clang-format
BRANCH=none
TEST=none | @@ -659,8 +659,8 @@ static int sbat_emul_finalize_write_msg(struct i2c_emul *emul, int reg,
pec = cros_crc8_arg(data->msg_buf, 3, pec);
if (pec != data->msg_buf[3]) {
data->bat.error_code = STATUS_CODE_UNKNOWN_ERROR;
- LOG_ERR("Wrong PEC 0x%x != 0x%x",
- pec, data->msg_buf[3]);
+ LOG_ERR("Wrong PEC 0x%x != 0x%x", pec,
... |
Shell Recorder: Fix broken check for INI plugin | @@ -15,7 +15,7 @@ function (add_plugin_shell_test PLUGIN)
endfunction ()
# Only add test below if INI plugin is available
-list (FIND REMOVED_PLUGINS mini PLUGIN_INDEX_INI)
+list (FIND REMOVED_PLUGINS ini PLUGIN_INDEX_INI)
if (${PLUGIN_INDEX_INI} EQUAL -1)
add_s_test (msr_syntax "${CMAKE_SOURCE_DIR}/tests/shell/shell_r... |
max payne update
fixed | @@ -583,7 +583,7 @@ void Init()
static auto FOVHook = [](uintptr_t _this, uintptr_t edx) -> float
{
float f = AdjustFOV(*(float*)(_this + 0x58) * 57.295776f, Screen.fAspectRatio) * Screen.fFOVFactor;
- Screen.fFieldOfView = (((f > 179.0f) ? 179.0f : f) / 57.295776f);
+ Screen.fFieldOfView = f / 57.295776f;
return Scree... |
VERSION bump to version 2.2.7 | @@ -64,7 +64,7 @@ endif()
# micro version is changed with a set of small changes or bugfixes anywhere in the project.
set(SYSREPO_MAJOR_VERSION 2)
set(SYSREPO_MINOR_VERSION 2)
-set(SYSREPO_MICRO_VERSION 6)
+set(SYSREPO_MICRO_VERSION 7)
set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MICR... |
nsd-checkconf support for refuse-any. | @@ -369,6 +369,7 @@ config_print_zone(nsd_options_type* opt, const char* k, int s, const char *o,
SERV_GET_BIN(log_time_ascii, o);
SERV_GET_BIN(round_robin, o);
SERV_GET_BIN(minimal_responses, o);
+ SERV_GET_BIN(refuse_any, o);
/* str */
SERV_GET_PATH(final, database, o);
SERV_GET_STR(identity, o);
@@ -508,6 +509,7 @@ ... |
INTERNAL: No longer expand the hash table if it is fully expanded. | @@ -236,7 +236,11 @@ static void assoc_expand(void)
assocp->rootmask = hashmask(assocp->rootpower);
/* set hash_expansion_limit */
+ if (assocp->rootpower < 15) {
assocp->hash_expansion_limit = (assocp->hashsize * assocp->rootsize * 3) / 2;
+ } else { /* assocp->rootpower >= 15 */
+ assocp->hash_expansion_limit = 0; /*... |
Check for load error before accessing metadata content | @@ -1544,6 +1544,13 @@ static void _ocf_mngt_load_superblock_complete(void *priv, int error)
ocf_cache_t cache = context->cache;
ocf_cleaning_t loaded_clean_policy = cache->conf_meta->cleaning_policy_type;
+ if (error) {
+ ocf_cache_log(cache, log_err,
+ "ERROR: Cannot load cache state\n");
+ OCF_PL_FINISH_RET(context-... |
Fix typo in INSTALL file
recocognised -> recognised
CLA: trivial | with rmd160.
-Dxxx, lxxx, -Lxxx, -Wl, -rpath, -R, -framework, -static
- These system specific options will be recocognised and
+ These system specific options will be recognised and
passed through to the compiler to allow you to define
preprocessor symbols, specify additional libraries, library
directories or other com... |
Remove redundant decl of 509_STORE_set_flags
accidentally adds another define for X509_STORE_set_flags
It is already defined 5lines prior
CLA: trivial | @@ -272,7 +272,6 @@ int X509_STORE_set_purpose(X509_STORE *ctx, int purpose);
int X509_STORE_set_trust(X509_STORE *ctx, int trust);
int X509_STORE_set1_param(X509_STORE *ctx, X509_VERIFY_PARAM *pm);
X509_VERIFY_PARAM *X509_STORE_get0_param(X509_STORE *ctx);
-int X509_STORE_set_flags(X509_STORE *ctx, unsigned long flags... |
os/fs/mqueue/mq_close : Add log for mq_close fail case
If a thread which tries to close the mq, but the mq descriptor is not in its task_group, mq_close will fail. | #include <sched.h>
#include <mqueue.h>
#include <assert.h>
+#include <debug.h>
#include <tinyara/kmalloc.h>
#include <tinyara/sched.h>
@@ -134,6 +135,7 @@ int mq_close_group(mqd_t mqdes, FAR struct task_group_s *group)
mq_inode_release(inode);
} else {
+ dbg("ERROR: mqdes(%x) is not in this thread's group.\n", mqdes);
... |
Fix some conditional compilation in previous commit. | @@ -192,7 +192,8 @@ int flowc_receiver(int argc, char **argv)
return 1;
}
-#ifdef CONFIG_EXAMPLES_FLOWC_RECEIVER_DELAY
+#if defined(CONFIG_EXAMPLES_FLOWC_RECEIVER_DELAY) && \
+ CONFIG_EXAMPLES_FLOWC_RECEIVER_DELAY > 0
/* Delay to force flow control */
usleep(1000 * CONFIG_EXAMPLES_FLOWC_RECEIVER_DELAY);
|
h2olog/quic: support the packet_acked probe | @@ -100,6 +100,7 @@ struct quic_line_t {
u32 ack_only;
u32 master_conn_id;
u8 first_octet;
+ u32 newly_acked;
};
BPF_PERF_OUTPUT(events);
@@ -162,6 +163,25 @@ int trace_packet_commit(struct pt_regs *ctx) {
return 0;
}
+
+int trace_packet_acked(struct pt_regs *ctx) {
+ struct quic_line_t line = {};
+ struct st_quicly_co... |
Check for null blocks in all hash functions. | @@ -239,6 +239,9 @@ define_function(data_md5)
int64_t offset = arg_offset;
int64_t length = arg_length;
+ if (block == NULL)
+ return_string(YR_UNDEFINED);
+
yr_md5_init(&md5_context);
if (offset < 0 || length < 0 || offset < block->base)
@@ -322,7 +325,7 @@ define_function(data_sha1)
YR_MEMORY_BLOCK* block = first_mem... |
Warn if parse function isn't found | @@ -820,6 +820,10 @@ void DeRestPluginPrivate::apsdeDataIndicationDevice(const deCONZ::ApsDataIndicat
enqueueEvent(Event(r->prefix(), item->descriptor().suffix, idItem->toString(), device->key()));
}
}
+ else if (!parseFunction)
+ {
+ DBG_Printf(DBG_INFO, "parse function not found: %s\n", qPrintable(item->parseParamete... |
Fix Exception typo in vpp_papi/vpp_transport_socket.py. | @@ -180,7 +180,7 @@ class VppTransport(object):
return buf
if l == len(msg):
return msg
- raise VPPTransportSocketIOError(1, 'Unknown socket read error')
+ raise VppTransportSocketIOError(1, 'Unknown socket read error')
def read(self):
if not self.connected:
|
NOTES.WIN: mention Strawberry Perl as option. | this are required as well:
- You need Perl. We recommend ActiveState Perl, available from
- https://www.activestate.com/ActivePerl.
+ https://www.activestate.com/ActivePerl. Another viable alternative
+ appears to be Strawberry Perl, http://strawberryperl.com.
You also need the perl module Text::Template, available on ... |
[ctr/lua] bugfix preload about deploying multiple contract | @@ -72,8 +72,15 @@ func Execute(bs *state.BlockState, tx *types.Tx, blockNo uint64, ts int64,
}
var rv string
- var ex *Executor
+ if receiver.IsNew() {
+ bcCtx := NewContext(bs, sender.State(), contractState, types.EncodeAddress(txBody.GetAccount()),
+ hex.EncodeToString(tx.GetHash()), blockNo, ts, "", 0,
+ types.Enco... |
ikev2: fix removing of expired SAs
Type: fix | @@ -4054,7 +4054,6 @@ ikev2_mngr_process_fn (vlib_main_t * vm, vlib_node_runtime_t * rt,
if (p)
{
ikev2_initiate_sa_init (vm, p->name);
- continue;
}
}
vec_foreach (c, sa->childs)
@@ -4062,6 +4061,7 @@ ikev2_mngr_process_fn (vlib_main_t * vm, vlib_node_runtime_t * rt,
hash_unset (tkm->sa_by_rspi, sa->rspi);
pool_put (t... |
update msvc.lua
update msvc.lua
update msvc.lua
update clang.lua
update msvc.lua | @@ -121,7 +121,7 @@ function generate_dependencies(target, sourcebatch, opt)
local compinst = target:compiler("cxx")
local toolchain = target:toolchain("msvc")
local vcvars = toolchain:config("vcvars")
- local scandependenciesflag = get_scandependenciesflag(target)
+ local scandependenciesflag = nil -- get_scandependen... |
arch/xtensa/esp32: Add missing macros to iomux | #define FUN_PU (BIT(8))
#define FUN_IE (BIT(9))
#define FUN_DRV 0x3
+#define FUN_DRV_V 0x3
#define FUN_DRV_S 10
+#define FUN_DRV_M ((FUN_DRV_V) << (FUN_DRV_S))
#define MCU_SEL 0x7
+#define MCU_SEL_V 0x7
#define MCU_SEL_S 12
+#define MCU_SEL_M ((MCU_SEL_V) << (MCU_SEL_S))
#define PIN_INPUT_ENABLE(PIN_NAME) SET_PERI_REG_... |
ci, travis: fix coveralls installation | @@ -36,9 +36,6 @@ branches:
only:
- master
-before_install:
- - pip install --user cpp-coveralls
-
script:
- sh ./build-deps.sh
- sh ./autogen.sh
@@ -52,6 +49,7 @@ script:
after_success:
- if [[ "$CC" == "gcc" && "$CODE_COVERAGE" == "ON" ]]; then
+ pip install --user cpp-coveralls
coveralls
--build-root .
--exclude lib... |
chore(Makefile): remove unused arguments | @@ -56,14 +56,6 @@ CFLAGS += -std=c99 -O0 -g -pthread -D_XOPEN_SOURCE=600 \
WFLAGS += -Wall -Wextra -pedantic
-ifeq ($(static_debug),1)
- CFLAGS += -D_STATIC_DEBUG
-else ifeq ($(static_debug),2)
- CFLAGS += -D_STRICT_STATIC_DEBUG
-else ifeq ($(static_debug),3)
- CFLAGS += -D_STATIC_DEBUG -D_STRICT_STATIC_DEBUG
-endif
-... |
framework/media: fix build error for compare logic
fix wrong compare logic | @@ -1377,7 +1377,7 @@ float getSignalToNoiseRatio(const short *buffer, size_t size, int windows, int *
{
const int NOISE_MIN = 30;
- int i = 0;
+ unsigned int i = 0;
int frame_sample = 0;
float sum = 0.0f;
|
Soft fail dfu when missing dependencies
Catches instances where users haven't installed construct and/or bitstring and fails with a soft error so cmake can still finish gracefully since not everyone needs a .dfu. | @@ -5,10 +5,33 @@ import sys
import pathlib
import zlib
-import construct
+missing_modules = []
+try:
from bitstring import BitArray
+except ImportError:
+ missing_modules.append("bitstring")
+
+try:
+ import construct
from construct import this, len_, Struct, Padded, CString, Rebuild, Computed, RawCopy, Checksum, Hex,... |
Remove another duplicate label | @@ -98,8 +98,8 @@ Finally, we create the configuration class in ``generators/chipyard/src/main/sca
:start-after: DOC include start: FIRRocketConfig
:end-before: DOC include end: FIRRocketConfig
-Testing
--------
+FIR Testing
+-----------
We can now test that the FIR is working. The test program is found in ``tests/fir.... |
chore(docs): remove [lv_sim_...] and [lv_...] from "Repository layout"
* chore(docs): remove [lv_sim_...] and [lv_...] from "Repository layout"
since [lv_sim_...] is part of [lv_port...] and [lv_...] just equals no filter at all
* Update docs/intro/index.md | @@ -69,10 +69,8 @@ You will find these repositories there:
- [lv_drivers](https://github.com/lvgl/lv_drivers) Display and input device drivers
- [blog](https://github.com/lvgl/blog) Source of the blog's site (https://blog.lvgl.io)
- [sim](https://github.com/lvgl/sim) Source of the online simulator's site (https://sim.l... |
Document infinite tail | @@ -10,6 +10,7 @@ extern "C" {
typedef struct clap_plugin_tail {
// Returns tail length in samples.
+ // Any value greater or equal to INT32_MAX implies infinite tail.
// [main-thread,audio-thread]
uint32_t (*get)(const clap_plugin_t *plugin);
} clap_plugin_tail_t;
|
edit FEATURE forbid setting operation nodes
Refs | @@ -3360,6 +3360,17 @@ sr_edit_add(sr_session_ctx_t *session, const char *xpath, const char *value, con
return NULL;
}
+ /* check alllowed node types */
+ for (parent = node; parent; parent = parent->parent) {
+ if (parent->schema->nodetype & (LYS_RPC | LYS_ACTION | LYS_NOTIF)) {
+ sr_errinfo_new(&err_info, SR_ERR_INVA... |
Fix issue DerFunc off in counter mode | @@ -185,8 +185,10 @@ int app_drbg_handler(ACVP_TEST_CASE *test_case) {
* the default value for this input. Longer entropy inputs are
* permitted, with the following exception: for ctrDRBG with no df, the
* bit length must equal the seed length.
+ *
+ * This will be enforced at registration time by the server. Also, wit... |
mbedtls: use soc capability macros in build CMakeLists | @@ -110,18 +110,27 @@ endif()
target_sources(mbedtls PRIVATE ${mbedtls_target_sources})
# Choose perihperal type
-if(CONFIG_IDF_TARGET_ESP32)
- set(SHA_PERIPHERAL_TYPE "parallel_engine")
- set(AES_PERIPHERAL_TYPE "block")
-else()
+
+if(CONFIG_SOC_SHA_SUPPORTED)
+ if(CONFIG_SOC_SHA_SUPPORT_DMA)
set(SHA_PERIPHERAL_TYPE "... |
SOVERSION bump to version 5.5.16 | @@ -45,7 +45,7 @@ set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_
# with backward compatible change and micro version is connected with any internal change of the library.
set(SYSREPO_MAJOR_SOVERSION 5)
set(SYSREPO_MINOR_SOVERSION 5)
-set(SYSREPO_MICRO_SOVERSION 15)
+set(SYSREPO_MICRO_S... |
invites: indentation fixes | ^- card
?< (team:title our.bowl recipient)
%+ invite-hook-poke recipient
- :^ %invite
- term.act
- uid.act
+ :^ %invite term.act uid.act
^- invite
:* ship.invites.act
app.invites.act
|
No name? Ask instead of stop | if [ -z $1 ]
then
- echo "Please provide application (folder) name. i.e:"
- echo "bash <(curl -s https://raw.githubusercontent.com/boazsegev/facil.io/stable/scripts/new) hello_world"
- exit 0
+ echo "Please name the application (the folder to create):"
+ read FIO_APPNAME
+else
+ FIO_APPNAME=$1
fi
-if [ -a $1 ]; then ec... |
Modify publishing script. Include Native Win32+Win10 and .NET 4.x SDK for now. No static nuget and no Win10 Managed. | -set /p PackageVersion=<../version.txt
+cd %~dp0
+set PATH=%CD%;%PATH%
+cd ..
+set ROOT=%CD%
+set /p PackageVersion=<%ROOT%\Solutions\version.txt
-call publish-nupkg.cmd native\Microsoft.Applications.Telemetry.Windows.%PackageVersion%.nupkg
-call publish-nupkg.cmd uap\Microsoft.Applications.Telemetry.Windows.UAP.%Packa... |
Refactor macro-spanning if in ssl_tls13_server.c | @@ -680,11 +680,13 @@ static int ssl_tls13_write_server_pre_shared_key_ext( mbedtls_ssl_context *ssl,
*olen = 0;
+ int not_using_psk = 0;
#if defined(MBEDTLS_USE_PSA_CRYPTO)
- if( mbedtls_svc_key_id_is_null( ssl->handshake->psk_opaque ) )
+ not_using_psk = ( mbedtls_svc_key_id_is_null( ssl->handshake->psk_opaque ) );
#... |
motorcontrol: compare only relative times to avoid overflow effects
Slightly harder to read, but means the same. | @@ -402,17 +402,17 @@ void get_reference(ustime_t time_ref, pbio_motor_trajectory_t *traject, count_t
// For RUN and RUN_STALLED, the end time is infinite, meaning that the reference signals do not have a deceleration phase
bool infinite = (traject->action == RUN) || (traject->action == RUN_STALLED);
- if (time_ref < t... |
Use uint variant to store enum in verifyProtocol().
Avoid the need for a cast by using a matching type.
Found on MacOS M1. | @@ -43,7 +43,7 @@ verifyProtocol(const String *command, const VariantList *paramList, ProtocolServ
varUInt64(varLstGet(paramList, 2)), // File size
varStr(varLstGet(paramList, 3))); // Cipher pass
- protocolServerResponse(server, varNewInt(result));
+ protocolServerResponse(server, VARUINT(result));
}
else
found = fals... |
Added Frametime label | @@ -1225,8 +1225,6 @@ static void compute_swapchain_display(struct swapchain_data *data)
ImGui::PopFont();
}
}
- // ImGui::ProgressBar(float(0.5), ImVec2(ImGui::GetContentRegionAvailWidth(), 21), NULL);
- ImGui::Dummy(ImVec2(0.0f, 20.0f));
if (loggingOn && log_period == 0){
uint64_t now = os_time_get();
@@ -1237,21 +12... |
Activate mms tests. | @@ -62,7 +62,7 @@ def validate_test(kw, is_fuzz_test):
if valid_kw.get('SCRIPT-REL-PATH') == 'boost.test':
project_path = valid_kw.get('BUILD-FOLDER-PATH', "")
- if not project_path.startswith(("mail", "maps", "metrika", "devtools")):
+ if not project_path.startswith(("contrib", "mail", "maps", "metrika", "devtools")):... |
Fixed reference URL for Base64.
The reference page for Base64 can't use to jump.
Because that URL already changed.
I fixed this URL to "https://www.leeholmes.com/searching-for-content-in-base-64-strings/". | @@ -463,7 +463,7 @@ Base64 strings
The ``base64`` modifier can be used to search for strings that have been base64
encoded. A good explanation of the technique is at:
-https://www.leeholmes.com/blog/2019/12/10/searching-for-content-in-base-64-strings-2/
+https://www.leeholmes.com/searching-for-content-in-base-64-string... |
Change error in tittles from last commit. | @@ -38,7 +38,7 @@ Use the [installer](https://github.com/metacall/install) and try [some examples]
- [2.1 Loaders (Backends)](#21-loaders-backends)
- [2.2 Ports (Frontends)](#22-ports-frontends)
- [3. Use Cases](#3-use-cases)
- - [3.1 Known Projects Using **METACALL**](#31-known-projects-using-metacall)
+ - [3.1 Known ... |
evp_test: add a ctx dup operation to the KDF tests | @@ -2690,6 +2690,7 @@ static int kdf_test_run(EVP_TEST *t)
KDF_DATA *expected = t->data;
unsigned char *got = NULL;
size_t got_len = expected->output_len;
+ EVP_KDF_CTX *ctx;
if (!EVP_KDF_CTX_set_params(expected->ctx, expected->params)) {
t->err = "KDF_CTRL_ERROR";
@@ -2699,6 +2700,10 @@ static int kdf_test_run(EVP_TES... |
TEST: Add one more smget test. | #!/usr/bin/perl
use strict;
-use Test::More tests => 52;
+use Test::More tests => 53;
use FindBin qw($Bin);
use lib "$Bin/lib";
use MemcachedTest;
@@ -79,6 +79,13 @@ MISSED_KEYS 0
END";
mem_cmd_val_is($sock, $cmd, $val, $rst);
+# smget: descending order (50..40, offset=0, value=100)
+$cmd = "bop smget 9 2 50..40 0 100"... |
[ctr/lua] Change the format string
The `%F` and `%T` conversion is in C99 and POSIX.1-2001.
It is not working on VS2013. | @@ -309,7 +309,7 @@ static int os_date(lua_State *L)
char buff[200]; /* Should be big enough for any conversion result. */
cc[1] = *(++s);
if (cc[1] == 'c') {
- reslen = strftime(buff, sizeof(buff), "%F %T", stm);
+ reslen = strftime(buff, sizeof(buff), "%Y-%m-%d %H:%M:%S", stm);
} else {
reslen = strftime(buff, sizeof... |
less signals, more flags | @@ -3817,7 +3817,8 @@ static void fio_worker_cleanup(void) {
fio_timer_clear_all();
fio_defer_perform();
if (!fio_data->is_worker) {
- kill(0, SIGINT);
+ fio_cluster_signal_children();
+ fio_defer_perform();
while (wait(NULL) != -1)
;
}
@@ -6206,7 +6207,7 @@ static void fio_cluster_listen_on_close(intptr_t uuid,
(int)g... |
zuse: if empty, unpack header into empty list
Previously, would give a ~[{}] for the '' header. This makes it parse
that as "no entries" rather than "one entry without data". | ++ pairs
%+ cook
~(gas by *(map @t @t))
- %+ more (ifix [. .]:(star ace) mic)
+ %+ most (ifix [. .]:(star ace) mic)
;~(plug token ;~(pose ;~(pfix tis value) (easy '')))
::
++ value
|
cross-reference further documentation | @@ -47,6 +47,11 @@ _swaymsg_ [options...] [message]
See *sway*(5) for a list of commands.
+ _swaymsg_ can return pretty printed (standalone-default) or JSON-formatted
+ (*--raw*) output. For detailed documentation on the returned JSON-data of
+ each message type listed below, refer to *sway-ipc*(7). The JSON-format can... |
Improve linguistic
PR <https://github.com/Genymobile/scrcpy/pull/1543> | @@ -441,7 +441,7 @@ Or by pressing `Ctrl`+`o` at any time.
To turn it back on, press `Ctrl`+`Shift`+`o` (or `POWER`, `Ctrl`+`p`).
-It can be useful to also prevent the device to sleep:
+It can also be useful to prevent the device from sleeping:
```bash
scrcpy --turn-screen-off --stay-awake
|
update changelog with 1.2.12-pre1 | @@ -5,6 +5,44 @@ v1.2.12-pre2
o export flag functions (3467cbb Nathan French)
o formatting (4ec8dd3 Nathan French)
+v1.2.12-pre1
+ o (evhtp_send_reply): Grab reference to bufferevent during write. (a976a2f Marcus Sundberg)
+ o add thread exit callback for cleaning (0c7d9c4 jgli)
+ o fix memory leak (a6b00cc jgli)
+ o f... |
[ctr/lua] Release sql transaction in call | @@ -598,11 +598,9 @@ func LuaCallContract(L *LState, bcCtx *LBlockchainCtx, contractId *C.char, fname
defer ce.close(true)
if ce.err != nil {
- sqlTx.RollbackToSavepoint()
luaPushStr(L, "[System.LuaGetContract]newExecutor Error :"+ce.err.Error())
return -1
}
- sqlTx.Release()
var ci types.CallInfo
ci.Name = fnameStr
@@... |
assert frontends not compiled with -DNDEBUG | @@ -79,6 +79,7 @@ extern "C" {
__log_args_color(M) "\n", \
__FILENAME__, __LINE__, ## __VA_ARGS__)
+#ifndef NDEBUG
#define evhtp_assert(x) \
do { \
if (evhtp_unlikely(!(x))) { \
@@ -119,6 +120,12 @@ extern "C" {
abort(); \
} \
} while (0)
+#else
+#define evhtp_assert(x)
+#define evhtp_alloc_assert(x)
+#define evhtp_ass... |
Add Mynewt specific release information | @@ -30,7 +30,16 @@ time, and allow testing to happen.
During the time between rc1 and the final release, the only changes
that should be merged into master are those to fix bugs found in the
-rc.
+rc and Mynewt metadata as described in the next section.
+
+## Mynewt release information
+
+On Mynewt, `newt` always fetch... |
add hart of 2 to heter explanation | footnote about tile v core [skip ci] | @@ -8,8 +8,9 @@ Creating a Rocket and BOOM System
-------------------------------------------
Instantiating an SoC with Rocket and BOOM cores is all done with the configuration system and two specific mixins.
-Both BOOM and Rocket have mixins labelled ``WithNBoomCores(X)`` and ``WithNBigCores(X)`` that automatically cr... |
chat-hook: fix synced map getting out of sync with outgoing subscriptions | state-4
state-5
state-6
+ state-7
==
::
++$ state-7 [%7 state-base]
+$ state-6 [%6 state-base]
+$ state-5 [%5 state-base]
+$ state-4 [%4 state-base]
$% [%chat-update update:store]
==
--
-=| state-6
+=| state-7
=* state -
::
%- agent:dbug
=/ old !<(versioned-state old-vase)
=| cards=(list card)
|-
- ?: ?=(%6 -.old)
+ ?:... |
Expose pool hashrates as prometheus metrics | +using System.Reactive;
using System.Reactive.Concurrency;
using System.Reactive.Linq;
using System.Reactive.Threading.Tasks;
using Microsoft.Extensions.Hosting;
using Miningcore.Messaging;
using Miningcore.Notifications.Messages;
+using NLog;
using Prometheus;
+using static Miningcore.Util.ActionUtils;
namespace Minin... |
Add note about debhelper for compiling the debian package. Fixes | @@ -82,7 +82,8 @@ Options (do one of these before you plug it in)
* 2. `modprobe -r usb-storage && modprobe usb-storage`
### Build Debian Package
-To build debian package you need debuild.
+
+To build the debian package you need the following extra packages: `debuild debhelper`.
```
$ git archive --prefix=$(git describ... |
wifimanager: terminate dhcpc on disconnected state in STA
dhcpc is not closed if STA receive disconnect command on connected
state. So call dhcpc_close_ipaddr() if STA in connected state get
a disconnect command. | @@ -560,6 +560,7 @@ wifi_manager_result_e _handler_on_connected_state(wifimgr_msg_s *msg)
{
WM_LOG_HANDLER_START;
if (msg->event == EVT_DISCONNECT_CMD) {
+ dhcpc_close_ipaddr();
WIFIMGR_CHECK_RESULT(_wifimgr_disconnect_ap(), "critical error", WIFI_MANAGER_FAIL);
WIFIMGR_SET_STATE(WIFIMGR_STA_DISCONNECTING);
} else if (... |
http1client: fix one comment about link timer | @@ -810,7 +810,8 @@ static void start_request(struct st_h2o_http1client_t *client, h2o_iovec_t metho
}
client->super.bytes_written.total = client->sock->bytes_written;
- /* TODO no need to set the timeout if all data has been written into TCP sendbuf */
+ /* Even all data highly likely has been written into TCP sendbuf... |
Return to main dir | @@ -155,5 +155,6 @@ if [ "$FASTINSTALL" = "false" ]; then
check_version autoconf 2.64 "OpenOCD build"
build_project riscv-openocd --prefix=$RISCV --enable-remote-bitbang --enable-jtag_vpi --disable-werror
echo -e "\\nRISC-V OpenOCD installation completed!"
+ cd $RDIR
fi
fi
|
remove cryptic prefixes | @@ -135,9 +135,9 @@ struct value_t *announces_add( const char query[], int port, time_t lifetime ) {
new->lifetime = lifetime;
if( lifetime == LONG_MAX ) {
- log_debug( "ANN: Add announcement for %s:%hu. Keep alive for entire runtime.", query, port );
+ log_debug( "Add announcement for %s:%hu. Keep alive for entire run... |
Add functional tests to GitHub Jenkins runner | @@ -46,9 +46,10 @@ pipeline {
}
stage('Test') {
steps {
- sh 'python3 ./Test/astc_test_image.py --encoder=all --test-set Small'
- //perfReport(sourceDataFiles:'TestOutput/results.xml')
- //junit(testResults: 'TestOutput/results.xml')
+ sh '''
+ python3 ./Test/astc_test_functional.py
+ python3 ./Test/astc_test_image.py ... |
Docs: Add marks field to get_tree response | @@ -343,6 +343,9 @@ node and will have the following properties:
|- sticky
: boolean
: Whether the node is sticky (shows on all workspaces)
+|- marks
+: array
+: List of marks assigned to the node
|- focused
: boolean
: Whether the node is currently focused by the default seat (_seat0_)
|
ph: clarify comment in moon test | ;< ~ bind:m (init-ship ~bud |)
;< ~ bind:m (init-ship ~marbud |)
;< ~ bind:m (init-ship ~linnup-torsyx |)
-::TODO not supported!
+::TODO real moons not supported!
;< ~ bind:m (init-ship ~linnup-torsyx-linnup-torsyx |)
;< ~ bind:m (send-hi ~bud ~linnup-torsyx-linnup-torsyx)
;< ~ bind:m (send-hi ~linnup-torsyx-linnup-tor... |
[MEMPOOL] Add warn message
- print warn messag if tx in the notified block leaves alive after removal | @@ -53,7 +53,7 @@ type MemPool struct {
pool map[types.AccountID]*TxList
dumpPath string
status int32
- // misc configs
+ // followings are for test
testConfig bool
}
@@ -181,7 +181,7 @@ func (mp *MemPool) get() ([]*types.Tx, error) {
// validate
// add pool if possible, else pendings
func (mp *MemPool) put(tx *types.T... |
data tree BUGFIX add actual realtype for union | @@ -190,8 +190,12 @@ lyd_value_validate(const struct ly_ctx *ctx, const struct lyd_node_term *node, c
}
if (realtype) {
+ if (val.realtype->basetype == LY_TYPE_UNION) {
+ *realtype = val.subvalue->value.realtype;
+ } else {
*realtype = val.realtype;
}
+ }
type->plugin->free(ctx ? ctx : LYD_CTX(node), &val);
return LY_S... |
README.md: Add export restriction notice for MbedTLS | @@ -237,3 +237,23 @@ A: Here are three:
Use of the name `apps/external` is suggested because that name is included
in the `.gitignore` file and will save you some nuisance when working with
GIT.
+
+# Export restrictions
+
+This distribution includes cryptographic software. The country in which you
+currently reside may... |
add comment to explain why the loop has no body | #include "ntl.h"
+#include <stdlib.h>
void **
ntl_malloc (size_t nmem, size_t elem_size)
@@ -19,7 +20,8 @@ size_t
ntl_length (void **p)
{
int i;
- for (i = 0; p[i]; i++);
+ for (i = 0; p[i]; i++) /* empty body */;
+
return i;
}
|
Testing: bitsPerValue setting via two methods | @@ -93,17 +93,17 @@ for file in $files; do
done
-files="regular_latlon_surface.grib2 \
- regular_latlon_surface.grib1"
-
-for file in `echo $files`; do
+files="regular_latlon_surface.grib2
+ regular_latlon_surface.grib1
+ lfpw.grib1"
+for file in $files; do
infile=${data_dir}/$file
outfile1=${infile}_bitsPerValue_1
out... |
Update: english_to_narsese_gpt3.py: typo fix Seth found | @@ -33,7 +33,7 @@ Q: The cat is in the garden
A: < ( cat * garden ) --> in > .
Q: cats are furry animals
-A: < cat * ( [ furry ] & animal ) > .
+A: < cat --> ( [ furry ] & animal ) > .
Q: what is a cat?
A: < ?1 --> cat > ?
|
Print pg_regress failure diffs using fgets. | @@ -1766,11 +1766,11 @@ open_file_for_reading(const char *filename) {
static void
print_contents_of_file(const char* filename) {
FILE *file;
- int character;
+ char string[1024];
file = open_file_for_reading(filename);
- while ((character = fgetc(file)) != EOF)
- fprintf(stdout, "%c", character);
+ while (fgets(string,... |
Remove reference to MoltenVK issue 175 which is fixed now | @@ -440,8 +440,6 @@ There are some exceptions though, when you should consider mapping memory only f
block is migrated by WDDM to system RAM, which degrades performance. It doesn't
matter if that particular memory block is actually used by the command buffer
being submitted.
-- On Mac/MoltenVK there is a known bug - [I... |
docs: fix some grammar and spelling issues | @@ -56,15 +56,15 @@ There are no special requirements concerning the operating system. Generally, Bo
1. Supports dynamic memory allocation/release.
2. Supports mutual exclusion (mutex) protection mechanism.
-3. Supports thread suspension for a specified duration (optional). BoAT cannot support "timeout" or "polling" fu... |
Added mavx2 flag for ios architectures | @@ -14,12 +14,10 @@ SRCS(
)
IF (ARCH_X86_64 OR ARCH_I386)
- IF (OS_LINUX OR OS_DARWIN)
- CONLYFLAGS(-mavx2 -std=c11)
- ELSE()
IF (MSVC)
CONLYFLAGS(/D__AVX2__=1)
- ENDIF()
+ ELSE()
+ CONLYFLAGS(-mavx2 -std=c11)
ENDIF()
ENDIF()
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.