message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
libcommon: sync param name for a function | @@ -48,7 +48,7 @@ bool files_sendToSocket(int fd, const uint8_t* buf, size_t fileSz);
extern bool files_exists(const char* fileName);
-extern const char* files_basename(const char* fileName);
+extern const char* files_basename(const char* path);
extern bool files_copyFile(
const char* source, const char* destination, b... |
Add content type for the code snippets | @@ -28,7 +28,7 @@ difference that it uses 4 spaces rather than one tab for indentation.
Here's a `.vimrc` snippet that would use this style:
-```
+```vim
set tabstop=4
set shiftwidth=4
set softtabstop=4
@@ -44,7 +44,7 @@ Structs are prefixed with `st_` and suffixed with `_t`. Structs that are
not private to a single tr... |
maint: self-configure rockspec for release versions.
* luaposix-git-1.rockspec (source, dependencies): Set fields based
on _MODREV value. | @@ -13,18 +13,26 @@ description = {
license = 'MIT/X11',
}
-source = {
- url = 'git://github.com/luaposix/luaposix.git',
--- url = 'http://github.com/luaposix/luaposix/archive/v' .. _MODREV .. '.zip',
--- dir = 'luaposix-' .. _MODREV,
-}
-
dependencies = {
'lua >= 5.1, < 5.4',
'bit32',
- 'ldoc',
}
+source = (function(g... |
options/ansi: Implement timegm | @@ -1093,7 +1093,19 @@ time_t timelocal(struct tm *) {
__builtin_unreachable();
}
-time_t timegm(struct tm *) {
- __ensure(!"Not implemented");
- __builtin_unreachable();
+constexpr static int days_from_civil(int y, unsigned m, unsigned d) noexcept {
+ y -= m <= 2;
+ const int era = (y >= 0 ? y : y - 399) / 400;
+ cons... |
YAML CPP: Improve style of connections in diagram | Binary files a/src/plugins/yamlcpp/yamlcpp/Tree.pdf and b/src/plugins/yamlcpp/yamlcpp/Tree.pdf differ
|
xpath REFACTOR normalize strcmp return | @@ -7290,7 +7290,7 @@ moveto_op_comp(struct lyxp_set *set1, struct lyxp_set *set2, const char *op)
result = (set1->val.num == set2->val.num);
} else {
assert(set1->type == LYXP_SET_STRING);
- result = !strcmp(set1->val.str, set2->val.str);
+ result = strcmp(set1->val.str, set2->val.str) ? 0 : 1;
}
} else if (op[0] == '... |
Release thread lua state; | @@ -32,9 +32,11 @@ static int threadRunner(void* data) {
event.data.threaderror.thread = thread;
event.data.threaderror.error = thread->error;
lovrEventPush(event);
+ lua_close(L);
return 1;
}
+ lua_close(L);
return 0;
}
|
stm32/usb: Initialise cdc variable to prevent compiler warnings.
Some compilers cannot deduce that cdc will always be written before being
used. | @@ -880,7 +880,7 @@ static uint8_t USBD_CDC_MSC_HID_Setup(USBD_HandleTypeDef *pdev, USBD_SetupReqTyp
// Work out the recipient of the setup request
uint8_t mode = usbd->usbd_mode;
uint8_t recipient = 0;
- usbd_cdc_state_t *cdc;
+ usbd_cdc_state_t *cdc = NULL;
switch (req->bmRequest & USB_REQ_RECIPIENT_MASK) {
case USB_... |
add comment about adaption of tree view | -// adapted from https://github.com/chenglou/react-treeview
+// interactive tree view to edit configurations of instances and clusters
+
+/*
+adapted from https://github.com/chenglou/react-treeview
+
+ - added functionality to make a dynamic tree view that allows editing of tree
+ nodes with values (via `valueField`)
+... |
use current period rather than slotduration in synchronizePacket. | @@ -1984,10 +1984,12 @@ port_INLINE void channelhoppingTemplateIDStoreFromEB(uint8_t id){
void synchronizePacket(PORT_RADIOTIMER_WIDTH timeReceived) {
PORT_SIGNED_INT_WIDTH timeCorrection;
PORT_RADIOTIMER_WIDTH newPeriod;
+ PORT_RADIOTIMER_WIDTH currentPeriod;
PORT_RADIOTIMER_WIDTH currentValue;
// record the current t... |
Add 3.1 change log | @@ -6,6 +6,69 @@ release of the 3.x series.
All performance data on this page is measured on an Intel Core i5-9600K
clocked at 4.2 GHz, running astcenc using AVX2 and 6 threads.
+<!-- ---------------------------------------------------------------------- -->
+## 3.1
+
+**Status:** July 2021 (in development)
+
+The 3.1 ... |
Reduce baudrate to improve reliability and ensure backwards compatibility. | @@ -543,7 +543,7 @@ class OpenMoteCC2538_bootloadThread(threading.Thread):
def run(self):
print 'starting bootloading on {0}'.format(self.comPort)
subprocess.call(
- 'python '+os.path.join('bootloader','openmote-cc2538','cc2538-bsl.py')+' -e --bootloader-invert-lines -w -b 500000 -p {0} {1}'.format(self.comPort,self.he... |
Update IDataInspector
Add `noexcept` where relevant
Add `AddIgnoredConcern` method. | @@ -67,7 +67,7 @@ namespace MAT_NS_BEGIN
/// Set the enabled state at runtime for the inspector.
/// </summary>
/// <param name="isEnabled">Boolean value to denote whether the inspector is enabled or not.</param>
- virtual void Enabled(bool isEnabled) = 0;
+ virtual void Enabled(bool isEnabled) noexcept = 0;
/// <summa... |
removing unneccesary stuff | "%pylab inline\n",
"import pyccl as ccl\n",
"import seaborn as sns; sns.set_style('darkgrid') # for nicer plots http://seaborn.pydata.org -- optional, if you don't want to use it, you can comment this and the next line\n",
- "sns.set_context(\"notebook\")\n",
- "%config InlineBackend.figure_format = 'retina' #jupyter m... |
(Ab)use calloc for OpenVR controller models;
Avoids a potential invalid call to free on destroy. | @@ -510,10 +510,9 @@ static ModelData* openvrControllerNewModelData(Controller* controller) {
modelData->animationCount = 0;
modelData->materialCount = 1;
- modelData->nodes = malloc(1 * sizeof(ModelNode));
- modelData->primitives = malloc(1 * sizeof(ModelPrimitive));
- modelData->animations = NULL;
- modelData->materi... |
tools: Do not check ccname get_os() for windows native build | @@ -115,15 +115,10 @@ static void show_help(const char *progname, int exitcode)
exit(exitcode);
}
-static enum os_e get_os(char *ccname)
+static enum os_e get_os(void)
{
#ifdef CONFIG_WINDOWS_NATIVE
- /* Check for MinGW which implies a Windows native environment */
-
- if (strstr(ccname, "mingw") != NULL)
- {
return OS... |
build: missing clang in deps for ubuntu 20.04
Type: make | @@ -84,13 +84,13 @@ else ifeq ($(OS_VERSION_ID),20.04)
DEB_DEPENDS += python3-virtualenv
DEB_DEPENDS += libssl-dev
DEB_DEPENDS += libelf-dev # for libbpf (af_xdp)
- DEB_DEPENDS += clang-format-10
+ DEB_DEPENDS += clang-11 clang-format-10
LIBFFI=libffi7
else ifeq ($(OS_VERSION_ID),20.10)
DEB_DEPENDS += python3-virtualen... |
Make public the functions of go port. | @@ -13,7 +13,7 @@ import (
const PtrSizeInBytes = (32 << uintptr(^uintptr(0)>>63)) >> 3
-func metacall_initialize() error {
+func Initialize() error {
if (int(C.metacall_initialize()) != 0) {
return errors.New("MetaCall failed to initialize")
}
@@ -21,7 +21,7 @@ func metacall_initialize() error {
return nil
}
-func met... |
Remove "to upper dir" on root dir | @@ -245,13 +245,15 @@ static void dlgsetlist(void) {
prm.pos = 0;
fl = filesel.fbase;
while(fl) {
+ if(!((strcmp(filesel.path, "") == 0 || strcmp(filesel.path, "/") == 0) && (strcmp(fl->name, ".") == 0 || strcmp(fl->name, "..") == 0))) {
menudlg_itemappend(DID_FLIST, NULL);
prm.icon = (fl->isdir)?MICON_FOLDER:MICON_FIL... |
interface: remove left margin from reconnectbutton | @@ -3,7 +3,6 @@ import { Box, Text } from "@tlon/indigo-react";
const ReconnectBox = ({ color, children, onClick }) => (
<Box
- ml={2}
px={2}
py={1}
display="flex"
|
do not test install on windows | @@ -5,18 +5,24 @@ function main(argv)
os.exec("xmake m -b")
os.exec("xmake f -c")
os.exec("xmake")
+ if os.host() ~= "windows" then
os.exec("sudo xmake install")
os.exec("sudo xmake uninstall")
+ end
os.exec("xmake p")
os.exec("xmake c")
os.exec("xmake f -m release")
os.exec("xmake -r -a -v --backtrace")
+ if os.host()... |
haskell-pluginprocess: fix format | @@ -17,8 +17,7 @@ extern "C" {
* allow this library to possibly be extended to further commands in
* the future
*/
-typedef enum
-{
+typedef enum {
// clang-format off
ELEKTRA_PLUGINPROCESS_OPEN=1, /*!< Call the plugin's open function */
ELEKTRA_PLUGINPROCESS_CLOSE=1<<1, /*!< Call the plugin's close function */
|
driver/accel_lis2ds.c: Format with clang-format
BRANCH=none
TEST=none | @@ -49,8 +49,8 @@ static int lis2ds_config_interrupt(const struct motion_sensor_t *s)
int ret = EC_SUCCESS;
/* Interrupt trigger level of power-on-reset is HIGH */
- RETURN_ERROR(st_write_data_with_mask(s, LIS2DS_H_ACTIVE_ADDR,
- LIS2DS_H_ACTIVE_MASK, LIS2DS_EN_BIT));
+ RETURN_ERROR(st_write_data_with_mask(
+ s, LIS2DS... |
posix: pass MSG_DONTWAIT to unix sockets when using read() or write() | @@ -471,7 +471,7 @@ int posix_read(int fildes, void *buf, size_t nbyte)
open_file_t *f;
process_info_t *p;
- int rcnt;
+ int rcnt, flags = 0;
if ((p = pinfo_find(proc_current()->process->id)) == NULL)
return -1;
@@ -488,7 +488,10 @@ int posix_read(int fildes, void *buf, size_t nbyte)
proc_lockClear(&p->lock);
if (f->ty... |
shell recorder: promote Markdown Shell Recorder | ## Overview
The Shell Recorder is a test tool that checks the output and return values of shell commands such as `kdb`. It allows you to write unit and
-regression tests. Lets take a look at a simple Shell Recorder test first. We store the text:
+regression tests.
+
+Generally you do not want to directly use the shell ... |
Build: Cache depends.
Enable github caching of depends.
The depends system will rebuild depends when needed.
Speed up most builds by about 30min. | @@ -36,7 +36,16 @@ jobs:
- name: Install Build Tools
run: sudo ${SCRIPTS}/00-install-deps.sh ${{ MATRIX.OS }}
- - name: Copy and Build Dependencies
+ - name: Cache dependencies.
+ uses: actions/cache@v2
+ with:
+ path: |
+ ${{ GITHUB.WORKSPACE }}/depends/built
+ ${{ GITHUB.WORKSPACE }}/depends/sources
+ ${{ GITHUB.WORK... |
wifi_provisioning : Increased 1 byte of BLE advertising device name to store '\0', at the end, to ensure we adhere to the max name length as per spec. | @@ -52,7 +52,7 @@ typedef struct protocomm_ble_config {
/**
* BLE device name being broadcast at the time of provisioning
*/
- char device_name[MAX_BLE_DEVNAME_LEN];
+ char device_name[MAX_BLE_DEVNAME_LEN + 1];
/**
* 128 bit UUID of the provisioning service
|
vere: bump version to 0.10.5 | set -e
-URBIT_VERSION="0.10.4"
+URBIT_VERSION="0.10.5"
deps=" \
curl gmp sigsegv argon2 ed25519 ent h2o scrypt sni uv murmur3 secp256k1 \
|
feat(tiny_test_fw): ignore known failure cases result
py | @@ -26,8 +26,8 @@ import os
import sys
import threading
-from tiny_test_fw import TinyFW
-from tiny_test_fw.Utility import CaseConfig, SearchCases
+from tiny_test_fw.TinyFW import JunitReport, set_default_config
+from tiny_test_fw.Utility import CaseConfig, SearchCases, console_log
class Runner(threading.Thread):
@@ -3... |
Added get_port_range to the yatest/common/network PortManager | @@ -75,13 +75,16 @@ class PortManager(object):
continue
finally:
sock.close()
- # Don't try to _lock_port(), it's already locked in the get_tcp_port()
+ # Don't try to _capture_port(), it's already captured in the get_tcp_port()
return result_port
raise Exception('Failed to find port')
def release_port(self, port):
wit... |
mpi-families/mpich: bump version to v3.2.1 | @@ -30,7 +30,7 @@ BuildRequires: libevent-devel
Summary: MPICH MPI implementation
Name: %{pname}%{RMS_DELIM}-%{compiler_family}%{PROJ_DELIM}
-Version: 3.2
+Version: 3.2.1
Release: 1%{?dist}
License: BSD
Group: %{PROJ_NAME}/mpi-families
|
Minor fig name change | "\n",
" print(\"z = %2.2f\" % z_vals[z_idx])\n",
"\n",
- " plt.savefig(\"pkdev_v2_z{}.pdf\".format(\"{:.2f}\".format(z_vals[z_idx]).replace(\".\", \"_\")))\n",
+ " plt.savefig(\"pkdev_v3_z{}.pdf\".format(\"{:.2f}\".format(z_vals[z_idx]).replace(\".\", \"_\")))\n",
" plt.show()\n",
" plt.clf()\n"
]
|
2.12RC->Trunk; fix logic triggering fuzzy-match fallback for multi-vars/mats | @@ -2861,7 +2861,6 @@ avtSiloFileFormat::ReadMultivars(DBfile *dbfile,
char cwd[512];
DBGetDir(dbfile, cwd);
meshname = FileFunctions::Absname(cwd,mv->mmesh_name,"/");
- meshname.erase(meshname.begin());
if (!DBInqVarExists(dbfile, meshname.c_str()))
{
debug5 << "Although 'mmesh_name' member indicates variable \"" << m... |
[Polly] Clang complains about missing virtual destructor
Summary: Feel free to reassign if needed.
Reviewers: mhalk, bollu, jdoerfert
Subscribers: jdoerfert, llvm-commits
Tags: #llvm | @@ -118,6 +118,8 @@ public:
Type::getIntNTy(Builder.getContext(), DL.getPointerSizeInBits())),
M(Builder.GetInsertBlock()->getParent()->getParent()) {}
+ virtual ~ParallelLoopGenerator() {}
+
/// Create a parallel loop.
///
/// This function is the main function to automatically generate a parallel
|
treeview: Use system colors by default (feature request) | @@ -450,7 +450,7 @@ BOOLEAN PhTnpOnCreate(
}
if (!(Context->VScrollHandle = CreateWindow(
- L"SCROLLBAR",
+ WC_SCROLLBAR,
NULL,
WS_CHILD | WS_CLIPSIBLINGS | WS_VISIBLE | SBS_VERT,
0,
@@ -467,7 +467,7 @@ BOOLEAN PhTnpOnCreate(
}
if (!(Context->HScrollHandle = CreateWindow(
- L"SCROLLBAR",
+ WC_SCROLLBAR,
NULL,
WS_CHILD ... |
Update Retry key and nonce | @@ -2067,9 +2067,9 @@ ngtcp2_pkt_write_stateless_reset(uint8_t *dest, size_t destlen,
}
static const uint8_t retry_key[] =
- "\x4d\x32\xec\xdb\x2a\x21\x33\xc8\x41\xe4\x04\x3d\xf2\x7d\x44\x30";
+ "\xcc\xce\x18\x7e\xd0\x9a\x09\xd0\x57\x28\x15\x5a\x6c\xb9\x6b\xe1";
static const uint8_t retry_nonce[] =
- "\x4d\x16\x11\xd0\... |
Bump version to hslua 1.0.3.2 | name: hslua
-version: 1.0.3.1
+version: 1.0.3.2
synopsis: Bindings to Lua, an embeddable scripting language
description: HsLua provides bindings, wrappers, types, and helper
functions to bridge Haskell and <https://www.lua.org/ Lua>.
|
fix bug for invert with diagonal 0 matrix
If there is any diagonal 0 in the process of Gauss-Jordan method, swap that row with a non-0 row below. | @@ -55,9 +55,26 @@ bool linalg_invert_matrix(mp_float_t *data, size_t N) {
for(size_t m=0; m < N; m++){
// this could be faster with ((c < epsilon) && (c > -epsilon))
if(MICROPY_FLOAT_C_FUN(fabs)(data[m*(N+1)]) < epsilon) {
+ //look for a line to swap
+ size_t m1=m+1;
+ for(; m1 < N; m1++){
+ if ( !(MICROPY_FLOAT_C_FUN... |
removed deprecated examples from help | @@ -2565,13 +2565,8 @@ printf("%s %s (C) %s ZeroBeat\n"
"--help : show this help\n"
"--version : show version\n"
"\n"
- "if hcxpsktool recovered your password, you should change it immediately!\n"
- "\n"
- "examples:\n"
- "hcxpsktool -i hashfile.hccapx | sort | uniq | hashcat -m 2500 hashfile.hccapx\n"
- "hcxpsktool -z... |
[ci] remove unnecessary stm32 bsp | @@ -74,9 +74,7 @@ env:
- RTT_BSP='stm32f20x' RTT_TOOL_CHAIN='sourcery-arm'
- RTT_BSP='stm32f40x' RTT_TOOL_CHAIN='sourcery-arm'
- RTT_BSP='stm32f4xx-HAL' RTT_TOOL_CHAIN='sourcery-arm'
- - RTT_BSP='stm32f411-nucleo' RTT_TOOL_CHAIN='sourcery-arm'
- RTT_BSP='stm32f429-apollo' RTT_TOOL_CHAIN='sourcery-arm'
-# - RTT_BSP='stm... |
Fixed eslint warnings on AppToolbar | import React, { Component } from "react";
+import PropTypes from "prop-types";
import { connect } from "react-redux";
import {
Toolbar,
@@ -32,37 +33,44 @@ const sectionNames = {
class AppToolbar extends Component {
setSection = section => e => {
- this.props.setSection(section);
+ const { setSection } = this.props;
+ ... |
Documentation: X509_V_ERR_CERT_CHAIN_TOO_LONG is not unused
The Error `X509_V_ERR_CERT_CHAIN_TOO_LONG` is not unused. See e.g. here:
CLA: trivial | @@ -212,7 +212,7 @@ and it is not self-signed and the B<X509_V_FLAG_PARTIAL_CHAIN> flag is not set.
=item B<X509_V_ERR_CERT_CHAIN_TOO_LONG: certificate chain too long>
-The certificate chain length is greater than the supplied maximum depth. Unused.
+The certificate chain length is greater than the supplied maximum dep... |
TSCH: bugfix in frame encryption
Header IEs shouldn't be encrypted since they are part of the header. | @@ -138,6 +138,7 @@ tsch_security_secure_frame(uint8_t *hdr, uint8_t *outbuf,
uint8_t with_encryption;
uint8_t mic_len;
uint8_t nonce[16];
+ struct ieee802154_ies ies;
uint8_t a_len;
uint8_t m_len;
@@ -151,6 +152,13 @@ tsch_security_secure_frame(uint8_t *hdr, uint8_t *outbuf,
return 0;
}
+ memset(&ies, 0, sizeof(ies));... |
gpcheckcat: Make opt block similar to 6X | @@ -3293,9 +3293,12 @@ def check_gpexpand():
def check_test_subset_parameter_count():
test_option_count = 0
- test_option_count = test_option_count + 1 if GV.opt['-R'] else test_option_count
- test_option_count = test_option_count + 1 if GV.opt['-s'] else test_option_count
- test_option_count = test_option_count + 1 if... |
Performance Use faster strcmp | @@ -484,12 +484,20 @@ int grib_recompose_print(grib_handle* h, grib_accessor *observer, const char* un
return ret;
}
+/* Note: A fast cut-down version of strcmp which does NOT return -1 */
+/* 0 means input strings are equal and 1 means not equal */
+GRIB_INLINE static int grib_inline_strcmp(const char* a,const char* b... |
fs/mmap: Support the no backing file for anonymous mapping | @@ -94,6 +94,22 @@ static int file_mmap_(FAR struct file *filep, FAR void *start,
}
#endif /* CONFIG_DEBUG_FEATURES */
+ /* Check if we are just be asked to allocate memory, i.e., MAP_ANONYMOUS
+ * set meaning that the memory is not backed up from a file. The file
+ * descriptor should be -1 (or refer to opened /dev/ze... |
Update AddIOCells.debug comment | @@ -167,8 +167,6 @@ object AddIOCells {
* Add IO cells to a debug module and name the IO ports, for debug IO which must go off-chip
* For on-chip debug IO, drive them appropriately
* @param system A BaseSubsystem that might have a debug module
- * @param resetctrlOpt An optional ResetCtrlIO bundle
- * @param debugOpt A... |
SSL: refactor ssl_cert_lookup_by_pkey() to work with provider side keys
Fixes | @@ -1068,19 +1068,20 @@ int ssl_cert_lookup_by_nid(int nid, size_t *pidx)
const SSL_CERT_LOOKUP *ssl_cert_lookup_by_pkey(const EVP_PKEY *pk, size_t *pidx)
{
- int nid = EVP_PKEY_id(pk);
- size_t tmpidx;
-
- if (nid == NID_undef)
- return NULL;
+ size_t i;
- if (!ssl_cert_lookup_by_nid(nid, &tmpidx))
- return NULL;
+ fo... |
Horadric update
Note: mandatory check (NEED_CHECK) was skipped | },
"horadric":{
"formula": {
- "sandbox_id": 305019129,
+ "sandbox_id": 305101611,
"match": "horadric"
},
"executable": {
|
add excludes to helpers/setup.py | @@ -20,6 +20,11 @@ includes = [
'matplotlib.backends.backend_qt5agg'
]
+excludes = [
+ 'six.moves.urllib.parse',
+ 'six.moves.urllib.request'
+]
+
setup(
windows = [{'script': 'exec.py'}],
data_files = matplotlib.get_py2exe_datafiles() + [
@@ -29,6 +34,7 @@ setup(
options = {
'py2exe':{
'includes': includes,
+ 'exclude... |
nat: test - add show trace
Add missing show trace.
Type: improvement | @@ -311,6 +311,7 @@ class NAT44EDTestCase(VppTestCase):
pkts.reverse()
self.pg1.add_stream(pkts)
self.pg_enable_capture(self.pg_interfaces)
+ self.logger.info(self.vapi.cli("show trace"))
self.pg_start()
frags = self.pg0.get_capture(len(pkts))
p = self.reass_frags_and_verify(frags,
|
[mod_auth] merge some repeated code; code reuse | @@ -716,6 +716,7 @@ int mod_auth_plugin_init(plugin *p) {
#include "http_header.h"
__attribute_cold__
+__attribute_noinline__
static handler_t mod_auth_send_400_bad_request(request_st * const r) {
/* a field was missing or invalid */
@@ -725,6 +726,7 @@ static handler_t mod_auth_send_400_bad_request(request_st * const ... |
mk: Ensure that FIRRTL jar has updated timestamp
SBT does not replace $(ROCKETCHIP_DIR)/firrtl/utils/bin/firrtl.jar if
compilation produces the same results. | @@ -13,8 +13,9 @@ FIRRTL ?= java -Xmx2G -Xss8M -XX:MaxPermSize=256M -cp $(ROCKET_CLASSES):$(FIRRTL
$(FIRRTL_JAR): $(call lookup_scala_srcs, $(ROCKETCHIP_DIR)/firrtl/src/main/scala)
$(MAKE) -C $(ROCKETCHIP_DIR)/firrtl SBT="$(SBT)" root_dir=$(ROCKETCHIP_DIR)/firrtl build-scala
- mkdir -p $(ROCKETCHIP_DIR)/lib
- cp -p $(R... |
nimble/ll: Fix rfclk after extended scan stop
It's quite possible that when stopping extended scan we also remove some
AUX scan items form scheduler so we should trigger rfclk to restart on
proper item. | @@ -1270,7 +1270,6 @@ ble_ll_scan_sm_stop(int chk_disable)
if (scansm->ext_scanning) {
ble_ll_scan_clean_cur_aux_data();
ble_ll_sched_rmv_elem_type(BLE_LL_SCHED_TYPE_AUX_SCAN, ble_ll_scan_sched_remove);
- scansm->ext_scanning = 0;
}
#endif
@@ -1304,6 +1303,15 @@ ble_ll_scan_sm_stop(int chk_disable)
}
OS_EXIT_CRITICAL(s... |
Copy go package from docker. | @@ -112,6 +112,7 @@ docker run \
chown $(id -u):$(id -g) tinysplinedlang.tar.gz && \
cp -a tinysplinedlang.tar.gz ${STORAGE}/linux64 && \
cmake --build . --target tinysplinego && \
+ cp -a tinyspline-go.zip ${STORAGE}/linux64 && \
mvn package && \
chown $(id -u):$(id -g) target/*.jar && \
cp -a target/*.jar ${STORAGE}/... |
[bsp][stm32] change dir name stm32f091-nucleo to stm32f091-st-nucleo | @@ -81,7 +81,7 @@ env:
- RTT_BSP='stm32l475-iot-disco' RTT_TOOL_CHAIN='sourcery-arm'
- RTT_BSP='stm32l476-nucleo' RTT_TOOL_CHAIN='sourcery-arm'
- RTT_BSP='stm32h743-nucleo' RTT_TOOL_CHAIN='sourcery-arm'
- - RTT_BSP='stm32/stm32f091-nucleo' RTT_TOOL_CHAIN='sourcery-arm'
+ - RTT_BSP='stm32/stm32f091-st-nucleo' RTT_TOOL_C... |
doc(table) update doc on cell merging
See | @@ -40,7 +40,7 @@ The height is calculated automatically from the cell styles (font, padding etc)
### Merge cells
-Cells can be merged horizontally with `lv_table_set_cell_merge_right(table, col, row, true)`. To merge more adjacent cells call this function for each cell.
+Cells can be merged horizontally with `lv_table... |
perf opt
don't draw invisible chars in the Code Editor | @@ -83,6 +83,8 @@ static void drawCode(Code* code, bool withCursor)
{
char symbol = *pointer;
+ if(x >= -TIC_FONT_WIDTH && x < TIC80_WIDTH && y >= -TIC_FONT_HEIGHT && y < TIC80_HEIGHT )
+ {
if(code->cursor.selection && pointer >= selection.start && pointer < selection.end)
code->tic->api.rect(code->tic, x-1, y-1, TIC_F... |
bootloader: Fix esp_get_flash_encryption_mode(). RELEASE = (CRYPT_CNT == max) or (CRYPT_CNT.write_protect == true)
If the CRYPT_CNT efuse is max it means the same as a write protection bit for this efuse.
Closes: | @@ -80,7 +80,7 @@ void esp_flash_write_protect_crypt_cnt(void)
esp_flash_enc_mode_t esp_get_flash_encryption_mode(void)
{
- uint8_t efuse_flash_crypt_cnt_wr_protected = 0;
+ bool flash_crypt_cnt_wr_dis = false;
#if CONFIG_IDF_TARGET_ESP32
uint8_t dis_dl_enc = 0, dis_dl_dec = 0, dis_dl_cache = 0;
#elif CONFIG_IDF_TARGET... |
Change CONFIG_CXX_NEWLONG to CONFIG_ARCH_SIZET_LONG
Follow up nuttx side change | @@ -558,7 +558,7 @@ examples/helloxx
And you may have to tinker with the following to get libxx to compile
properly:
- CONFIG_CXX_NEWLONG=y or =n
+ CCONFIG_ARCH_SIZET_LONG=y or =n
The argument of the 'new' operators should take a type of size_t. But size_t
has an unknown underlying. In the nuttx sys/types.h header file... |
netkvm: dereference protocol in any corner case
The protocol must be dereferenced also in case the OID
request was not spawned due to any reason. | @@ -179,11 +179,11 @@ public:
void Complete(NDIS_STATUS status) override
{
__super::Complete(status);
- ParaNdis_DereferenceBinding(m_Adapter);
Destroy(this, m_Handle);
}
~COidWrapperAsync()
{
+ ParaNdis_DereferenceBinding(m_Adapter);
if (m_Data)
{
NdisFreeMemoryWithTagPriority(m_Handle, m_Data, DataTag);
|
Get fw debug log: better debug prints on failure
- firmware debug log, not error log
- add fw return code print | @@ -2842,8 +2842,9 @@ FwCmdGetFWDebugLog (
ReturnCode = PassThru(pDimm, pFwCmd, PT_LONG_TIMEOUT_INTERVAL);
if (EFI_ERROR(ReturnCode)) {
- NVDIMM_WARN("Failed to get error log, LogPageOffset = %d\n", Index);
+ NVDIMM_WARN("Failed to get firmware debug log, LogPageOffset = %d\n", Index);
if (FW_ERROR(pFwCmd->Status)) {
+... |
examples: update fork2 to match current APIs
Fixes
unistd.fork returns nil, errmsg for a failure.
Reported by: J. Burfeind | @@ -5,10 +5,10 @@ local M = require 'posix.unistd'
print ('parent: my pid is: ' .. M.getpid())
-local childpid = M.fork ()
+local childpid, errmsg = M.fork ()
-if childpid == -1 then
- print('parent: The fork failed.')
+if childpid == nil then
+ print('parent: The fork failed: ' .. errmsg)
elseif childpid == 0 then
pri... |
signal.h: Don't include pthread.h to avoid the mutual reference
let's use pthread_attr_s directly | #include <stdint.h>
#include <time.h>
-#ifdef CONFIG_SIG_EVTHREAD
-# include <pthread.h> /* Needed for pthread_attr_t, includes this file */
-#endif
-
/********************************************************************************
* Pre-processor Definitions
***********************************************************... |
disable subscription resume | @@ -94,7 +94,7 @@ export class Urbit {
credentials: 'include',
accept: '*',
headers,
- signal: this.abort
+ signal: this.abort.signal
};
}
@@ -240,7 +240,8 @@ export class Urbit {
}
},
onerror: (error) => {
- if(this.errorCount++ < 5) {
+ // Channel resume currently broken in eyre
+ if(false && this.errorCount++ < 5) {... |
Fix board/stm32_lcd.c:584:14: error: converting the result of '<<' to a boolean; did you mean '(7 << (10)) != 0'? | @@ -581,7 +581,7 @@ static int slcd_setcontrast(uint8_t contrast)
}
regval = getreg32(STM32_LCD_FCR);
- regval &= !LCD_FCR_CC_MASK;
+ regval &= ~LCD_FCR_CC_MASK;
regval |= contrast << LCD_FCR_CC_SHIFT;
putreg32(regval, STM32_LCD_FCR);
|
vio-svc: fix a typo in a comment (a redundant just). | #define INVALID_FILE_HANDLE ((uint64_t)(-1))
// Some of the constants defined in Windows doesn't match the values that are
-// used in Linux. Don't try just to understand, just redefine them to match.
+// used in Linux. Don't try to understand, just redefine them to match.
#undef O_DIRECTORY
#undef O_EXCL
#undef S_IFMT... |
Fix typo in axis. | @@ -881,7 +881,7 @@ HRESULT openbor_set_axis_principal_int_property(ScriptVariant **varlist, ScriptV
case _AXIS_PRINCIPAL_Y:
- handle->x = temp_int;
+ handle->y = temp_int;
break;
|
fix for when the device list was not initialized | @@ -1203,7 +1203,7 @@ stlink_t *stlink_open_usb(enum ugly_loglevel verbose, enum connect_type connect,
libusb_set_option(slu->libusb_ctx, LIBUSB_OPTION_LOG_LEVEL, ugly_libusb_log_level(verbose));
#endif
- libusb_device **list;
+ libusb_device **list = NULL;
// TODO: We should use ssize_t and use it as a counter if > 0.... |
Add search of fusion in CMake helper | @@ -10,6 +10,7 @@ set(PTLS_HINTS ${CMAKE_BINARY_DIR}/../picotls ../picotls)
find_library(PTLS_CORE_LIBRARY picotls-core HINTS ${PTLS_HINTS})
find_library(PTLS_OPENSSL_LIBRARY picotls-openssl HINTS ${PTLS_HINTS})
+find_library(PTLS_FUSION_LIBRARY picotls-fusion HINTS ${PTLS_HINTS})
include(FindPackageHandleStandardArgs)... |
contact-hook: no-op on accepted invite
The contact-hook was attempting to join a group upon it's invite being
accepted. However, the join poke is also sent from the frontend, causing
a potential race condition. Changes contact-hook to no-op on an
%invite-update. | (fact-group-update:cc wire !<(update:group-store q.cage.sign))
[cards this]
::
- %invite-update
- =^ cards state
- (fact-invite-update:cc wire !<(invite-update q.cage.sign))
- [cards this]
+ %invite-update [~ this]
==
==
::
[%pass / %agent [our.bol %invite-hook] %poke %invite-action !>(act)]
--
::
-++ fact-invite-updat... |
workspace_create: Don't allow NULL name | @@ -56,6 +56,8 @@ struct sway_output *workspace_get_initial_output(const char *name) {
struct sway_workspace *workspace_create(struct sway_output *output,
const char *name) {
+ sway_assert(name, "NULL name given to workspace_create");
+
if (output == NULL) {
output = workspace_get_initial_output(name);
}
@@ -69,7 +71,7... |
global.c : fixed call to libssh2_crypto_exit
* global.c : fixed call to libssh2_crypto_exit
File: global.c
Notes: Don't call `libssh2_crypto_exit()` until `_libssh2_initialized` count is down to zero.
Credit: seba30 | @@ -62,7 +62,8 @@ libssh2_exit(void)
_libssh2_initialized--;
- if(!(_libssh2_init_flags & LIBSSH2_INIT_NO_CRYPTO)) {
+ if(_libssh2_initialized == 0 &&
+ !(_libssh2_init_flags & LIBSSH2_INIT_NO_CRYPTO)) {
libssh2_crypto_exit();
}
|
ipsec: fix combined counters in ah-encrypt node
Type: fix
Fixes: | @@ -169,12 +169,14 @@ ah_encrypt_inline (vlib_main_t * vm,
if (vnet_buffer (b[0])->ipsec.sad_index != current_sa_index)
{
+ if (current_sa_index != ~0)
+ vlib_increment_combined_counter (&ipsec_sa_counters, thread_index,
+ current_sa_index,
+ current_sa_pkts,
+ current_sa_bytes);
current_sa_index = vnet_buffer (b[0])->... |
Tidy up the edges of the colour picker widget. | @@ -491,11 +491,14 @@ static void draw_disc_grad(lv_obj_t * cpicker, const lv_area_t * mask)
line_dsc.color = angle_to_mode_color(cpicker, i);
lv_point_t p[2];
- p[0].x = cx + (r * _lv_trigo_sin(i) >> LV_TRIGO_SHIFT);
- p[0].y = cy + (r * _lv_trigo_sin(i + 90) >> LV_TRIGO_SHIFT);
- p[1].x = cx + ((r - cir_w_extra) * _l... |
Safety check, check status code of AndroidBitmap_getInfo call | @@ -48,7 +48,10 @@ namespace carto {
JNIEnv* jenv = AndroidUtils::GetCurrentThreadJNIEnv();
AndroidBitmapInfo bitmapInfo;
- AndroidBitmap_getInfo(jenv, androidBitmap, &bitmapInfo);
+ if (AndroidBitmap_getInfo(jenv, androidBitmap, &bitmapInfo) != ANDROID_BITMAP_RESULT_SUCCESS) {
+ Log::Error("BitmapUtils::CreateBitmapFr... |
Fix Linux compile issues. | @@ -1538,7 +1538,7 @@ int h09_header_test()
/* Simulate data arrival */
for (int j = 0; ret == 0 && j < 4; j++) {
ret = h09_header_split_test(
- h09_header_data_test_case[i].test_header,
+ (const uint8_t*) h09_header_data_test_case[i].test_header,
strlen(h09_header_data_test_case[i].test_header),
split_test[j], &h09_he... |
nat: avoid division by zero
Return error instead of dividing by zero.
Type: fix | @@ -82,13 +82,20 @@ snat_det_add_map (snat_main_t * sm, ip4_address_t * in_addr, u8 in_plen,
num_sessions = num_sessions * 1000 - 1;
}
+ u32 sharing_ratio = (1 << (32 - in_plen)) / (1 << (32 - out_plen));
+ if (!sharing_ratio)
+ {
+ // avoid division by zero
+ return VNET_API_ERROR_INVALID_VALUE;
+ }
+
pool_get (sm->de... |
Log decoding error | @@ -217,7 +217,11 @@ static unsigned int getAsn1HeaderSize(NSString *publicKeyType, NSNumber *publicK
NSData *serializedSpkiCache = [NSData dataWithContentsOfURL:[self SPKICachePath]];
if (serializedSpkiCache) {
if (@available(iOS 11.0, *)) { // prefer NSSecureCoding API when available
- spkiCache = [NSKeyedUnarchiver ... |
improve error message, when required scopes cannot be registered dynamically | #include "list/list.h"
#include "oidc-agent/httpserver/termHttpserver.h"
#include "oidc-agent/oidc/device_code.h"
+#include "oidc-agent/oidc/values.h"
#include "oidc-gen/parse_ipc.h"
#include "settings.h"
#include "utils/crypt/cryptUtils.h"
@@ -462,6 +463,19 @@ struct oidc_account* registerClient(const struct arguments... |
swap dims. | @@ -356,8 +356,8 @@ avtADIOS2BaseFileFormat::GetMesh(int timestate, const char *meshname)
if (shape.size() == 2)
shape.push_back(1);
-// cout<<"********** SWAP DIMS"<<endl;
-// std::swap(shape[0], shape[1]);
+ cout<<"********** SWAP DIMS"<<endl;
+ std::swap(shape[0], shape[1]);
int dims[3] = {shape[0], shape[1], shape[... |
DA: Simplify writeZclAttribute
The eeror check is redundant, since the function will bail out due missing parameters. | @@ -596,12 +596,6 @@ bool writeZclAttribute(const Resource *r, const ResourceItem *item, deCONZ::ApsC
Q_ASSERT(apsCtrl);
bool result = false;
- Q_ASSERT(!item->writeParameters().isNull());
- if (item->writeParameters().isNull())
- {
- return result;
- }
-
const auto rParent = r->parentResource() ? r->parentResource() :... |
Added brief descriptions of modules in main README.md. | `vplanet` is software to simulate planetary system evolution, with a focus on habitability. Physical models, typically consisting of ordinary differential equations, are coupled together to simulate evolution for the age of a system. We strive for full transparency and reproducibility in our software, and this reposito... |
N250SP: Adding PCI user reset and clock_125MHz to psl4n250sp | @@ -319,8 +319,8 @@ Component psl_accel
ah_tbreq : OUT STD_LOGIC; -- Timebase command request
ah_paren : OUT STD_LOGIC;
ha_pclock : IN STD_LOGIC;
- pci_user_reset : in std_logic; --PCI hip user_reset signal if needed
- pci_clock_125MHz : in std_logic --125MHz clock if needed
+ pci_user_reset : IN std_logic; --PCI hip u... |
revert the changes in Dockerfile.ubuntu2004; we use 2204 for coverage | @@ -2,24 +2,27 @@ FROM ubuntu:20.04
ENV DEBIAN_FRONTEND=noninteractive
-RUN apt-get update --yes && apt-get install --yes \
+RUN apt-get --yes update
+RUN apt-get install --yes \
apache2-utils \
bison \
+ clang \
cmake \
cmake-data \
dnsutils \
flex \
git \
- lsb-release \
libbrotli-dev \
libc-ares-dev \
libcap-dev \
+... |
zephyr: arm_cleanup.c: use <.../cortex_m/cmsis.h>
Use <arch/arm/aarch32/cortex_m/cmsis.h> include instead of <zephyr.h> to
get access to Cortex-M CMSIS API. zephyr.h provides kernel API, does not
guarantee access to CPU internals.
Fixes: "Building MCUBoot for Zephyr fails on multiple ARM boards" | * SPDX-License-Identifier: Apache-2.0
*/
-#include <zephyr.h>
+#include <arch/arm/aarch32/cortex_m/cmsis.h>
void cleanup_arm_nvic(void) {
/* Allow any pending interrupts to be recognized */
|
framework/media: Add brace for readability
If an 'else if' has a brace on one side, it should have it on both | @@ -215,9 +215,9 @@ static bool _parse_header(uint32_t header, size_t *frame_size)
RETURN_VAL_IF_FAIL((sampling_rate_index != SAMPLE_RATE_IDX_UNDEFINED), false);
int sampling_rate;
- if (version == MPEG_VERSION_1)
+ if (version == MPEG_VERSION_1) {
sampling_rate = kSamplingRateV1[sampling_rate_index];
- else if (versio... |
apps/examples/lzf: Fix another coding standard issue. | @@ -222,8 +222,7 @@ static int uncompress_fd(int from, int to)
ret = rread(from, header + over, MAX_HDR_SIZE - over);
if (ret < 0)
{
- fprintf (stderr, "%s: read error: ", g_imagename);
- perror ("");
+ fprintf(stderr, "%s: read error: %d\n", g_imagename, errno);
return -1;
}
|
Remove unused IsFading check in ScriptLastFnComplete | @@ -1825,8 +1825,6 @@ void Script_TextWithAvatar_b() {
}
UBYTE ScriptLastFnComplete_b() {
- UBYTE fading = IsFading();
-
/*
if (last_fn == Script_LoadData_b && !fading) {
return TRUE;
|
BFD: drop rpc call if packet doesn't match session
In a very unlikely scenario, during which a session is removed
and replaced with a different session sharing the same session
index, while a packet is in-flight during RPC call, drop that packet. | @@ -1555,7 +1555,7 @@ void
bfd_consume_pkt (bfd_main_t * bm, const bfd_pkt_t * pkt, u32 bs_idx)
{
bfd_session_t *bs = bfd_find_session_by_idx (bm, bs_idx);
- if (!bs)
+ if (!bs || (pkt->your_disc && pkt->your_disc != bs->local_discr))
{
return;
}
|
Minor bug respect to previous commit in tools/metacall-build.sh | @@ -81,8 +81,13 @@ sub_build() {
# Install
if [ $BUILD_INSTALL = 1 ]; then
+ if [ "$SUDO_CMD" = "" ]; then
+ make install
+ else
+ # Needed for rustup in order to install rust loader properly
$SUDO_CMD HOME="$HOME" make install
fi
+ fi
}
sub_help() {
|
Add link and mention to ESP32 reference target | @@ -22,6 +22,8 @@ This repo contains:
* [Wilderness Labs Netduino3 WiFi](targets/CMSIS-OS/ChibiOS/NETDIUNO3_WIFI)
* ChibiOS overlay for **nanoFramework**
* [STM32 Flash driver](targets/CMSIS-OS/ChibiOS/nf-overlay/os/hal/src/stm32_flash)
+* Target reference for FreeRTOS
+ * [ESP32_DevKitC](targets/FreeRTOS/ESP32_DevKitC... |
Ban returning an impure expression | @@ -693,6 +693,10 @@ func (p *parser) parseStatement1() (*a.Node, error) {
if err != nil {
return nil, err
}
+ if value.Effect().Impure() {
+ return nil, fmt.Errorf(`parse: %s an impure expression at %s:%d`,
+ x.Str(p.tm), p.filename, p.line())
+ }
return a.NewRet(x, value).AsNode(), nil
case t.IDWhile:
|
Add RGB_COLOR_HSB to lighting documentation | @@ -22,7 +22,7 @@ This will allow you to reference the actions defined in this header such as `RGB
Here is a table describing the action for each define:
| Define | Action |
-| --------- | --------------------------------------------------------- |
+| --------------- | --------------------------------------------------... |
web-ui: warn before creating subkeys with lower visibility than instance | @@ -15,7 +15,7 @@ import SelectField from 'material-ui/SelectField'
import MenuItem from 'material-ui/MenuItem'
import ActionBuild from 'material-ui/svg-icons/action/build'
-import { VISIBILITY_LEVELS } from '../../../utils'
+import { VISIBILITY_LEVELS, visibility } from '../../../utils'
import { KEY_TYPES } from './ut... |
Duktape compilation warings | @@ -250,11 +250,7 @@ static s32 duk_key(duk_context* duk)
if(key < tic_key_escape)
duk_push_boolean(duk, tic->api.key(tic, key));
- else
- {
- duk_error(duk, DUK_ERR_ERROR, "unknown keyboard code\n");
- return 0;
- }
+ else return duk_error(duk, DUK_ERR_ERROR, "unknown keyboard code\n");
}
return 1;
@@ -275,8 +271,7 @@... |
Lowers the number of paths and addresses until dynamic memory management is used | #define N_PATHS 2
#endif
#ifndef MAX_PATHS
-#define MAX_PATHS 8
+#define MAX_PATHS 4
#endif
#ifndef MAX_ADDRS
-#define MAX_ADDRS 8
+#define MAX_ADDRS 4
#endif
#define PREPARE_NEW_CONNECTION_ID_FRAME (PROTOOPID_SENDER + 0x48)
|
Use local var instead of repeated macro call
Store TLV offset in a variable to avoid repeating many calls to the
calculation macro. | @@ -1033,6 +1033,7 @@ boot_copy_sector(struct boot_loader_state *state,
int rc;
#ifdef MCUBOOT_ENC_IMAGES
uint32_t off;
+ uint32_t tlv_off;
size_t blk_off;
struct image_header *hdr;
uint16_t idx;
@@ -1082,12 +1083,13 @@ boot_copy_sector(struct boot_loader_state *state,
} else {
blk_off = ((off + bytes_copied) - hdr->ih... |
ble_mesh: stack: Fix kr from non-primary subnet shouldn't ignore
For case MESH/NODE/KR/BV-02-C | @@ -374,9 +374,19 @@ static void secure_beacon_recv(struct net_buf_simple *buf)
cache_add(data, sub);
- /* If we have NetKey0 accept initiation only from it */
+ /* Spec v1.0.1, Section 3.8.4:
+ * If a node on a primary subnet receives an update on
+ * the primary subnet, it shall propagate the IV update
+ * to all oth... |
fix trace error | @@ -82,7 +82,23 @@ namespace SLua
UnityEngine.Debug.Log(msg);
#endif
}
+
+ static void TracebackErr(string msg, bool hasStacktrace = false)
+ {
+ #if UNITY_5
+ var Type = UnityEngine.Application.GetStackTraceLogType (UnityEngine.LogType.Error);
+ UnityEngine.Application.SetStackTraceLogType (UnityEngine.LogType.Error, ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.