message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
Fix code style
Limit to 80 chars. | @@ -343,8 +343,8 @@ run_aoa_thread(void *data) {
if (ack_to_wait != SC_SEQUENCE_INVALID) {
LOGD("Waiting ack from server sequence=%" PRIu64_, ack_to_wait);
- // Do not block the loop indefinitely if the ack never comes (it should
- // never happen)
+ // Do not block the loop indefinitely if the ack never comes (it
+ //... |
Change link order in cgo. | %rename (string) tinyspline::Vec4::toString;
%insert(cgo_comment_typedefs) %{
-#cgo linux,386 LDFLAGS: -L${SRCDIR} -L${SRCDIR}/linux-x86 -lm -lstdc++ -ltinysplinego
-#cgo linux,amd64 LDFLAGS: -L${SRCDIR} -L${SRCDIR}/linux-x86_64 -lm -lstdc++ -ltinysplinego
-#cgo darwin,386 LDFLAGS: -L${SRCDIR} -L${SRCDIR}/macosx-x86 -l... |
bootutil: loader: fix BOOT_STATUS_ASSERT macro
BOOT_STATUS_ASSERT increments the variable if the macro argument
is evaluated as true, which is incorrect behavior compared to the
ASSERT macro. | @@ -47,7 +47,7 @@ static struct boot_loader_state boot_data;
static int boot_status_fails = 0;
#define BOOT_STATUS_ASSERT(x) \
do { \
- if (x) { \
+ if (!(x)) { \
boot_status_fails++; \
} \
} while (0)
|
Silence GCC warning about extra semicolons | @@ -199,8 +199,10 @@ typedef void * lv_img_decoder_user_data_t;
/* Export integer constant to binding.
* This macro is used with constants in the form of LV_<CONST> that
* should also appear on lvgl binding API such as Micropython
+ *
+ * The default value just prevents a GCC warning.
*/
-#define LV_EXPORT_CONST_INT(in... |
story: marginal output formatting improvement to `+story-list` | tang+[leaf+"Error: desk {<desk>} does not exist." ~]
?: !.^(? %cu pax)
tang+['Error: No story file found. Please use |story-init to create one.' ~]
-=/ story-to-mime
- .^($-(story mime) %cf /(scot %p our)/[desk]/(scot cas)/story/mime)
+=/ story-to-txt
+ .^($-(story wain) %cf /(scot %p our)/[desk]/(scot cas)/story/txt)
... |
os/arch: Fix crash during boot up with Trustzone disabled
When TrustZone config is disabled, the EXC_RET values are not
set properly. Set the common value of EXC_RET_BASE for all cases. | /* EXC_RETURN_BASE: Bits that are always set in an EXC_RETURN value. */
-#ifdef CONFIG_ARMV8M_TRUSTZONE
/* In case of ARMv8 with TZ, following bits have special meaning.
* BIT 6 : Set if secure stack is used, else reset
* BIT 5 : Set if default rules used for stacking callee registers
*/
#define EXC_RETURN_BASE 0xfffff... |
Tools: Add support for ESP32-C2 ECO1 flasher stub
requires esptool v3.3.1 or newer | @@ -90,7 +90,6 @@ mainmenu "Espressif IoT Development Framework Configuration"
default "y" if IDF_TARGET="esp32c2"
select FREERTOS_UNICORE
select IDF_TARGET_ARCH_RISCV
- select ESPTOOLPY_NO_STUB # TODO: ESPTOOL-440
config IDF_TARGET_LINUX
bool
|
vm/map: disable sharing of amaps between same process' map entries
This interacts badly with sharing between forked processes and currently
leads to use-after-free and accidental sharing of anons. | @@ -322,6 +322,7 @@ static void *_map_map(vm_map_t *map, void *vaddr, process_t *proc, size_t size,
e->amap = NULL;
e->aoffs = 0;
+#if 0
if (o == NULL) {
/* Try to use existing amap */
if (next != NULL && next->amap != NULL && next->aoffs >= (next->vaddr - e->vaddr)) {
@@ -333,6 +334,7 @@ static void *_map_map(vm_map_t... |
use new tool __FORCE_COMMIT__ | },
"samogonctl": {
"formula": {
- "sandbox_id": 260844045,
+ "sandbox_id": 298629876,
"match": "SAMOGONCTL"
},
"executable": {
|
Update makefile docs, include pythonNG | @@ -49,6 +49,7 @@ help:
@echo " html to make all HTML language docs"
@echo " pdf to make SBP LaTeX datasheet"
@echo " python to make Python bindings"
+ @echo " pythonNG to make Python (JIT) bindings"
@echo " haskell to make Haskell bindings"
@echo " java to make Java bindings"
@echo " protobuf to make Protocol Buffer b... |
4way: add missing define | #define CMD_BOOTSIGN 0x08
#define START_BIT_TIMEOUT 2000
+#define START_BIT_TIMEOUT_MS 2
#define BIT_TIME (52) // 52uS
#define BIT_TIME_HALVE (BIT_TIME >> 1) // 26uS
|
[cmake] MUMPS/debian: add potential ptscotch and scotch | @@ -15,7 +15,7 @@ INCLUDE(FindPackageHandleStandardArgs)
IF(IDONTWANTMPI)
SET(__MUMPS_NAMES dmumps_seq dmumps)
ELSE(IDONTWANTMPI)
- SET(__MUMPS_NAMES dmumps)
+ SET(__MUMPS_NAMES dmumps_ptscotch dmumps_scotch dmumps)
ENDIF(IDONTWANTMPI)
IF(MUMPS_LIBRARY_DIRECTORY)
|
examples/adc: Fix g_adcstate.count initialization. | @@ -257,13 +257,14 @@ int adc_main(int argc, char *argv[])
adc_devpath(&g_adcstate, CONFIG_EXAMPLES_ADC_DEVPATH);
+ g_adcstate.initialized = true;
+ }
+
#if CONFIG_EXAMPLES_ADC_NSAMPLES > 0
g_adcstate.count = CONFIG_EXAMPLES_ADC_NSAMPLES;
#else
g_adcstate.count = 1;
#endif
- g_adcstate.initialized = true;
- }
/* Parse ... |
package manpages | @@ -98,8 +98,9 @@ rm -rf $RPM_BUILD_ROOT
%doc %{dname}/AUTHORS %{dname}/COPYING %{dname}/ChangeLog %{dname}/INSTALL %{dname}/NEWS %{dname}/README %{dname}/TODO %{dname}/LICENSE
%config(noreplace) %{_sysconfdir}/warewulf/vnfs.conf
%config(noreplace) %{_sysconfdir}/warewulf/bootstrap.conf
-%{_libexecdir}/warewulf/*
%{_bi... |
The gateway IP should be 172.16.2.1 | @@ -7,7 +7,7 @@ Setup:
| | | |
| 04:00.0/172.16.1.2/port 0|<---->|04:00.1/172.16.1.1/TenGigabitEthernet4/0/1 |
| | | |
-| 04:00.1/172.16.2.2/port 1|<---->|04:00.0/172.16.2.2/TenGigabitEthernet4/0/0 |
+| 04:00.1/172.16.2.2/port 1|<---->|04:00.0/172.16.2.1/TenGigabitEthernet4/0/0 |
| | | |
---------------------------- --... |
[libc] revert back difftime | @@ -307,6 +307,14 @@ char* ctime(const time_t *tim_p)
}
RTM_EXPORT(ctime);
+double difftime(time_t time1, time_t time2)
+{
+ return (double)(time1 - time2);
+}
+RTM_EXPORT(difftime);
+
+RTM_EXPORT(strftime); /* inherent in the toolchain */
+
/**
* Returns the current time.
*
@@ -486,10 +494,6 @@ int settimeofday(const ... |
[del] stm32 dist handle in mkdist.py | @@ -336,15 +336,6 @@ def MkDist(program, BSP_ROOT, RTT_ROOT, Env, rttide = None):
print('=> %s' % os.path.basename(BSP_ROOT))
bsp_copy_files(BSP_ROOT, dist_dir)
- # copy stm32 bsp libiary files
- if os.path.basename(os.path.dirname(BSP_ROOT)) == 'stm32':
- print("=> copy stm32 bsp library")
- library_path = os.path.joi... |
pygame audio example: exit gracefully | @@ -7,17 +7,21 @@ import numpy
os.environ['PYGAME_HIDE_SUPPORT_PROMPT'] = "true"
-def consumer(conn):
+def player(q):
import pygame
pygame.mixer.pre_init(frequency=44100, size=-16, channels=2)
pygame.init()
channel = pygame.mixer.Channel(0)
while True:
- chunk = pygame.mixer.Sound(buffer=conn.recv())
+ buff = q.get()
+... |
hslua-aeson: Prevent stackoverflow in toByteString | @@ -135,7 +135,13 @@ peekBool = liftLua . toboolean
-- not silently converted to a string, as would happen with numbers.
toByteString :: StackIndex -> LuaE e (Maybe ByteString)
toByteString idx = do
- -- copy value, as tostring converts numbers to strings *in-place*.
+ -- Do an explicit type check, as @tostring@ conver... |
Add print binary size step in GitHub Actions | @@ -316,6 +316,18 @@ jobs:
id: tests
run: echo "::set-output name=tests-${{ steps.env.outputs.arch }}::$(make -s -C test/integration tests | egrep -v '.*java(9|1[023456])$' | sort -V | jq -ncR '[inputs]')"
+ - name: Print size of Binaries
+ run: |
+ echo "::group::libscope.so"
+ stat -c %s lib/linux/${{ steps.env.outpu... |
[Rust] axle_rt exposes adi syscalls | #![feature(start)]
#![feature(default_alloc_error_handler)]
#![feature(slice_ptr_get)]
+#![feature(format_args_nl)]
#![feature(panic_info_message)]
#![feature(stmt_expr_attributes)]
@@ -29,6 +30,40 @@ macro_rules! printf {
})
}
+#[macro_export]
+macro_rules! print {
+ ($($arg:tt)*) => ({
+ let s = alloc::fmt::format(co... |
fix: potential issue for 32-bit machines? | @@ -193,7 +193,7 @@ orka_sleep_ms(const int64_t delay_ms)
{
const struct timespec t = {
.tv_sec = delay_ms / 1000,
- .tv_nsec = (delay_ms % 1000) * 1000000
+ .tv_nsec = (uint64_t)((delay_ms % 1000) * 1000000)
};
nanosleep(&t, NULL);
|
Examples: add codes_get_double_elements for Python | @@ -24,14 +24,20 @@ def example():
gid = codes_grib_new_from_file(f)
values = codes_get_values(gid)
- for i in range(len(values)):
+ num_vals = len(values)
+ for i in range(num_vals):
print("%d %.10e" % (i + 1, values[i]))
- print('%d values found in %s' % (len(values), INPUT))
+ print('%d values found in %s' % (num_va... |
Disable PRF by default. | /* #define JANET_NO_UMASK */
/* Other settings */
-#define JANET_PRF
+/* #define JANET_PRF */
/* #define JANET_NO_UTC_MKTIME */
/* #define JANET_OUT_OF_MEMORY do { printf("janet out of memory\n"); exit(1); } while (0) */
/* #define JANET_EXIT(msg) do { printf("C assert failed executing janet: %s\n", msg); exit(1); } wh... |
bump join limit | @@ -48,7 +48,7 @@ int main_join(int argc, char* argv[])
OPT_SET('a', &append, "append - only works for cfl files!"),
};
- cmdline(&argc, argv, 3, 1000, usage_str, help_str, ARRAY_SIZE(opts), opts);
+ cmdline(&argc, argv, 3, 10000, usage_str, help_str, ARRAY_SIZE(opts), opts);
num_init();
|
iOS: fix runtime linking issue for iOS 9 and older | #define HAVE_ATAN2L 1
#define HAVE_ATAN2F 1
#define HAVE_CHROOT 1
-#define HAVE_CLOCK_GETTIME 1
+//RHO - support iOS 9 and older
+//#define HAVE_CLOCK_GETTIME 1
#define HAVE_COSH 1
#define HAVE_DIRFD 1
#define HAVE_DLOPEN 1
|
Performance faster strcmp in codetable | @@ -235,9 +235,17 @@ static void init(grib_accessor* a, const long len, grib_arguments* params)
}
}
+/* 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) {
+ if (*a != *... |
Mirror Bonjour changes to Avahi code. | @@ -2088,6 +2088,9 @@ register_printer(
is_print3d = !strncmp(printer->resource, "/ipp/print3d/", 13);
+ if ((location = printer->pinfo.location) == NULL)
+ location = ippGetString(ippFindAttribute(printer->pinfo.attrs, "printer-location", IPP_TAG_TEXT), 0, NULL);
+
/*
* Create the TXT record...
*/
@@ -2096,8 +2099,8 @... |
Re-enable publishing of v3 C# package | @@ -8,7 +8,7 @@ cd %ROOT%\tools
call publish-nupkg.cmd NuGet\native\Microsoft.Applications.Telemetry.Windows.%PackageVersion%.nupkg
call publish-nupkg.cmd NuGet\net40\Microsoft.Applications.Telemetry.Desktop.%PackageVersion%.nupkg
+call publish-nupkg.cmd NuGet\uap\Microsoft.Applications.Telemetry.Windows.UAP.%PackageVe... |
SIM: Minor change in testlist.sh for NVMe testing | step "snap_cblk $options -b2 --write cblk_read2.bin"
step "snap_cblk $options -b${blk} --read cblk_read3.bin"
diff cblk_read2.bin cblk_read3.bin
+ rm cblk_read3.bin
done
fi # hdl_nvme_example
#
|
Fix test failures.
Check pointer for null before dereferencing! | @@ -196,16 +196,16 @@ log_append(struct log *log, uint16_t module, uint16_t level, void *data,
struct os_timeval tv;
uint32_t idx;
- if (log->l_log->log_type == LOG_TYPE_STORAGE) {
- /* Remember that a log entry has been persisted since boot. */
- log_written = 1;
- }
-
if (log->l_name == NULL || log->l_log == NULL) {
... |
fix stupid pandas warning
score is abs diff now without multipliers | @@ -22,8 +22,8 @@ class ScoreConfig:
"""
def __init__(self,
- score_type=ScoreType.Rel,
- multiplier=1000,
+ score_type=ScoreType.Abs,
+ multiplier=1,
score_level=0.01,
interval_level=0.05,
overfit_iterations_info=True
@@ -94,8 +94,8 @@ class CaseEvaluationResult:
position = np.argmax(learning_curve) if self._metric_de... |
Keep constructors with priorities
Fixes GCOV builds with gcc7, which uses this. | -/* Copyright 2013-2014 IBM Corp.
+/* Copyright 2013-2018 IBM Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -86,6 +86,7 @@ SECTIONS
.init : {
__ctors_start = .;
KEEP(*(.ctors))
+ KEEP(*(SORT(.init_array.*)))
KEEP(*(.init_a... |
Display device UUID in cloud_proxy | @@ -1662,6 +1662,15 @@ oc_ownership_status_cb(const oc_uuid_t *device_uuid, size_t device_index,
PRINT(" oc_ownership_status_cb: UUID: '%s'\n", uuid);
}
+void
+display_device_uuid(void)
+{
+ char buffer[OC_UUID_LEN];
+ oc_uuid_to_str(oc_core_get_device_id(0), buffer, sizeof(buffer));
+
+ PRINT("Started device with ID: ... |
ra: validate parts and fix parser byte range | @@ -190,7 +190,7 @@ static int ra_parse_buffer(struct flb_record_accessor *ra, flb_sds_t buf)
++quote_cnt;
}
else if (buf[end] == '.' && (quote_cnt & 0x01)) {
- // ignore '.' if it is inside a string/subkey
+ /* ignore '.' if it is inside a string/subkey */
continue;
}
else if (buf[end] == '.' || buf[end] == ' ' || buf... |
naive: add another case to spawn proxy test | spawn-proxy.own:(~(got by points.state) ~sambud)
::
++ test-l2-sambud-spawn-proxy-predeposit-spawn ^- tang
+ =/ l2-sproxy [[~sambud %spawn] %set-spawn-proxy (addr %sambud-skey-1)]
=/ lf-spawn [[~sambud %spawn] %spawn ~lisdur-fodrys (addr %lf-key-0)]
+ ;: weld
%+ expect-eq
!> [`@ux`(addr %lf-key-0) 0]
::
!>
=| =^state:n... |
[ZARCH] Fix caxpy | @@ -65,6 +65,14 @@ static void caxpy_kernel_16(BLASLONG n, FLOAT *x, FLOAT *y, FLOAT *alpha) {
"vl %%v21,80(%%r1,%[y])\n\t"
"vl %%v22,96(%%r1,%[y])\n\t"
"vl %%v23,112(%%r1,%[y])\n\t"
+ "verllg %%v24,%%v8,32\n\t"
+ "verllg %%v25,%%v9,32\n\t"
+ "verllg %%v26,%%v10,32\n\t"
+ "verllg %%v27,%%v11,32\n\t"
+ "verllg %%v28,%%v... |
Restore _Atomic define before stdatomic.h for old gcc
see | @@ -649,12 +649,21 @@ int omp_get_num_procs(void);
__declspec(dllimport) int __cdecl omp_in_parallel(void);
__declspec(dllimport) int __cdecl omp_get_num_procs(void);
#endif
+
#if (__STDC_VERSION__ >= 201112L)
+#if defined(C_GCC) && ( __GNUC__ < 7)
+// workaround for GCC bug 65467
#ifndef _Atomic
#define _Atomic volati... |
libc: Remove LIBC_ERR from libs/libc/misc/Kconfig
forget in | @@ -68,9 +68,3 @@ config MEM_FD_VFS_PATH
depends on FS_TMPFS
---help---
The relative path to where memfd will exist in the tmpfs namespace.
-
-config LIBC_ERR
- bool "Support err() verr() verrx() warn() vwarn() vwarnx()"
- default y
- ---help---
- Support err() verr() verrx() warn() vwarn() vwarnx(). Default: y
|
[catboost] add missing validation for successful protobuf parsing | @@ -536,9 +536,10 @@ NCB::TQuantizedPoolDigest NCB::CalculateQuantizedPoolDigest(const TStringBuf pat
const auto columnsInfoSize = LittleToHost(ReadUnaligned<ui32>(
blob.data() + epilogOffsets.ColumnsInfoSizeOffset));
TColumnsInfo columnsInfo;
- columnsInfo.ParseFromArray(
+ const auto columnsInfoParsed = columnsInfo.P... |
BugID:18619422:[mqtt] fix [WhiteScan] [673609] [REVERSE_INULL] | @@ -288,14 +288,18 @@ static int iotx_mc_check_rule(char *iterm, iotx_mc_topic_type_t type)
/* check whether the topic is matched or not */
static char iotx_mc_is_topic_matched(char *topicFilter, MQTTString *topicName)
{
- char *curf = topicFilter;
- char *curn = topicName->lenstring.data;
- char *curn_end = curn + top... |
Release: Add info about INI plugin update | @@ -157,6 +157,7 @@ Many problems were resolved with the following fixes:
- We fixed [internal inconsistency](https://github.com/ElektraInitiative/libelektra/pull/1761) in the CMake code of the [Augeas plugin](https://www.libelektra.org/plugins/augeas)
- We fixed various small bugs that could potentially cause the INI ... |
Fix busy loop and log ODCID | @@ -619,8 +619,9 @@ static void conn_on_pkt_sent(ngtcp2_conn *conn, ngtcp2_rtb *rtb,
retransmittable packet (non-ACK only packet). */
ngtcp2_rtb_add(rtb, ent);
- /* TODO What to do 0RTT packet containing STREAM? */
- if (ngtcp2_pkt_handshake_pkt(&ent->hd)) {
+ if (ngtcp2_pkt_handshake_pkt(&ent->hd) &&
+ (ent->hd.type !... |
Use buildtools version to build music cache key | import childProcess from "child_process";
import Path from "path";
-import fs, { ensureDir, copy, pathExists } from "fs-extra";
+import fs, { readFile, ensureDir, copy, pathExists } from "fs-extra";
import ensureBuildTools from "./ensureBuildTools";
import { assetFilename } from "../helpers/gbstudio";
import { GB_MAX_B... |
Refactor puffs-gen-c's generate. | @@ -181,6 +181,14 @@ func (g *gen) generate() error {
return fmt.Errorf("cyclical struct definitions")
}
+ if err := g.genHeader(structs); err != nil {
+ return err
+ }
+ g.writes("// C HEADER ENDS HERE.\n\n")
+ return g.genImpl(structs)
+}
+
+func (g *gen) genHeader(structs []*a.Struct) error {
includeGuard := "PUFFS_... |
Cast result of cfgParseOptionId() to int.
It would probably make more sense to add an "invalid" enum value, but at least fix the cast for now. The function was originally designed to interface with Perl which required -1 in this case.
Found on MacOS M1. | @@ -476,7 +476,7 @@ cfgParseOptionId(const char *optionName)
for (ConfigOption optionId = 0; optionId < CFG_OPTION_TOTAL; optionId++)
if (strcmp(optionName, parseRuleOption[optionId].name) == 0)
- result = optionId;
+ result = (int)optionId;
FUNCTION_TEST_RETURN(result);
}
|
alef: print more | cwnd=_1
num-live=@ud
counter=@ud
+ start=@da
==
+$ live-packet-key [=message-num =fragment-num]
+$ live-packet-val
=. metrics.state metrics.-
=. live.state live.-
~? =(0 (mod counter.metrics.state 20)) [fragment-num show:gauge]
+ =? start.metrics.state =(0 fragment-num) now
::
packet-pump
::
=- =. metrics.state metrics... |
Ignore AutoTools build files. | @@ -489,6 +489,23 @@ ASALocalRun/
*.tar
*.tar.*
+## Autotools files.
+Makefile.in
+aclocal.m4
+build-aux/
+collected_files.am
+build/autotools/configure
+libtool.m4
+ltoptions.m4
+ltsugar.m4
+ltversion.m4
+lt~obsolete.m4
+Makefile
+config.status
+libtool
+.libs/
+samples_c*
+
## Additional rules
docs/doxyxml/
doc/doxyx... |
fixed compilation makefile for NFR52DK compile tests | @@ -30,7 +30,7 @@ hello-world/cc2538dk \
rpl-border-router/cc2538dk \
hello-world/nrf52dk \
platform-specific/nrf52dk/coap-demo/nrf52dk:coap-server \
-platform-specific/nrf52dk/coap-demo/nrf52dk:coap-client:SERVER_IPV6_ADDR=ffff \
+platform-specific/nrf52dk/coap-demo/nrf52dk:coap-client:SERVER_IPV6_EP=ffff \
platform-s... |
texttotext: Silenced warnings. | @@ -162,8 +162,8 @@ main(int argc, /* I - Number of command-line args */
to the next line */
int num_pages = 0; /* Number of pages which get actually
printed */
- ipp_t *printer_attrs;
- ipp_t *job_attrs ;
+ ipp_t *printer_attrs = NULL;
+ ipp_t *job_attrs = NULL;
ipp_attribute_t *ipp;
ipp_t *defsize;
char buf[2048];
@@... |
Added background_alpha and frametime_alpha to readme | @@ -73,6 +73,7 @@ A partial list of parameters are below. See the config file for a complete list.
| `toggle_hud=`<br>`toggle_logging=` | Modifiable toggle hotkeys. Default are F12 and F2, respectively. |
| `time`<br>`time_format=%T` | Displays local time. See [std::put_time](https://en.cppreference.com/w/cpp/io/manip/... |
[kernel] move DEBUG info | #include "OneStepNSProblem.hpp"
#include "BlockVector.hpp"
-// #define DEBUG_BEGIN_END_ONLY
+
// #define DEBUG_NOCOLOR
// #define DEBUG_STDOUT
// #define DEBUG_MESSAGES
+// #define DEBUG_BEGIN_END_ONLY
// #define DEBUG_WHERE_MESSAGES
#include <debug.h>
|
kernel/signal: Modify wrong signal assign in sig_sethandler
sig_sethandler should set signal through argument | @@ -69,7 +69,7 @@ int sig_sethandler(struct tcb_s *tcb, int signo, struct sigaction *act)
}
/* Put the signal number in the queue entry */
- sigact->signo = (uint8_t)SIGTM_PAUSE;
+ sigact->signo = (uint8_t)signo;
/* Add the new sigaction to sigactionq */
sq_addlast((FAR sq_entry_t *)sigact, &tcb->sigactionq);
|
Mute is a consumer keypress. | &kp GRAV &kp NUM_1 &kp NUM_2 &kp NUM_3 &kp NUM_4 &kp NUM_5 &kp NUM_6 &kp NUM_7 &kp NUM_8 &kp NUM_9 &kp NUM_0 &none
&kp ESC &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp BKSP
&kp TAB &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SCLN &kp QUOT
-&kp LSFT &kp Z &kp X &kp C &kp V &kp B &kp M_MU... |
bip: correct ADC scaling factors
We need to scale the thermistor reading to the exact voltage so it will
lookup correctly in the thermistor table.
BRANCH=none
TEST=temps on EC console makes sense | @@ -47,13 +47,23 @@ static void ppc_interrupt(enum gpio_signal signal)
/* ADC channels */
const struct adc_t adc_channels[] = {
/* Vbus C0 sensing (10x voltage divider). PPVAR_USB_C0_VBUS */
- [ADC_VBUS_C0] = {
- "VBUS_C0", 10*ADC_MAX_MVOLT, ADC_READ_MAX+1, 0, CHIP_ADC_CH13},
+ [ADC_VBUS_C0] = {.name = "VBUS_C0",
+ .fa... |
d16: improve failsafe behaviour | @@ -196,23 +196,22 @@ uint8_t frsky_d16_is_valid_packet(uint8_t *packet) {
(frsky_bind.rx_num == 0 || header->rx_num == 0 || frsky_bind.rx_num == header->rx_num);
}
-static uint8_t smart_port_data[128];
+#define SMART_PORT_DATA_SIZE 128
+static uint8_t smart_port_data[SMART_PORT_DATA_SIZE];
static volatile circular_buf... |
doc: update 'asa.rst' for 2.6 release
Update security vulnerability fix in 2.6 release. | Security Advisory
#################
+Addressed in ACRN v2.6
+************************
+
+We recommend that all developers upgrade to this v2.6 release (or later), which
+addresses the following security issue discovered in previous releases:
+
+-----
+
+- Memory leakage vulnerability in ``devicemodel/hw/pci/xhci.c``
+ ... |
BugID:16967023:[exports] fix typo of LINKLIT_EVENT_SUBDEV_SETUP | @@ -24,7 +24,7 @@ enum {
LINKKIT_EVENT_CLOUD_CONNECTED = 1, /* cloud connected */
LINKKIT_EVENT_SUBDEV_DELETED = 2, /* subdev deleted */
LINKKIT_EVENT_SUBDEV_PERMITED = 3, /* subdev permit join */
- LINKLIT_EVENT_SUBDEV_SETUP = 4, /* subdev install */
+ LINKKIT_EVENT_SUBDEV_SETUP = 4, /* subdev install */
};
/*
|
Fix coverity CID - Dereference after NULL check in evp_test.c | @@ -1151,7 +1151,7 @@ static int mac_test_run_pkey(EVP_TEST *t)
OBJ_nid2sn(expected->type), expected->alg);
if (expected->type == EVP_PKEY_CMAC) {
- if (is_cipher_disabled(expected->alg)) {
+ if (expected->alg != NULL && is_cipher_disabled(expected->alg)) {
TEST_info("skipping, PKEY CMAC '%s' is disabled", expected->al... |
Add build-all-win32-examples task to dev env | },
"problemMatcher": []
},
+ {
+ "label": "Build all WIN32 examples",
+ "type": "shell",
+ "command": "python",
+ "args": [
+ "build_all_examples.py"
+ ],
+ "options": {
+ "cwd": "${workspaceFolder}/examples/win32"
+ },
+ "problemMatcher": []
+ }
]
}
\ No newline at end of file
|
[catboost] Fix EvalResult on GPU | @@ -63,7 +63,7 @@ namespace NCatboostCuda {
test ? test->GetPoolPath() : NCB::TPathWithScheme(),
test ? test->GetDsvPoolFormatOptions() : NCB::TDsvFormatOptions(),
test ? test->GetPoolMetaInfo() : TPoolMetaInfo(),
- test ? test->GetTargetHelper().Serialize() : "",
+ (test && test->IsMulticlassificationPool()) ? test->G... |
Update main README with links to Mbed-OS documentation | @@ -25,6 +25,7 @@ Instructions for different operating systems can be found here:
- [Zephyr](docs/readme-zephyr.md)
- [Mynewt](docs/readme-mynewt.md)
- [RIOT](docs/readme-riot.md)
+- [Mbed-OS](docs/readme-mbed.md)
- [Simulator](sim/README.rst)
## Roadmap
|
Add example program to the README | @@ -17,3 +17,28 @@ $ cd Dictu
$ make dictu
$ ./dictu examples/guessingGame.du
```
+
+## Example program
+```js
+def guessingGame() {
+ var userInput;
+ var guess = 10;
+
+ while {
+ userInput = number(input("Input your guess: "));
+ print(userInput);
+ if (userInput == guess) {
+ print("Well done!");
+ return;
+ } else... |
Fixed examples/VenusWaterLoss/README.rst. | @@ -43,7 +43,7 @@ Expected output
surface water inventories. The vertical dashed line is the Watson et al. (1981)
:cite:`Watson81` timescale for the complete desiccation of Venus.
-To run this example
+To create the Bolmont scaling relationship figure
-------------------
.. code-block:: bash
|
tests: internal: config_map: test FLB_CONFIG_MAP_TIME and FLB_CONFIG_MAP_SIZE | struct context {
/* Single values */
int num_int;
+ size_t size;
+ time_t time;
char boolean;
double num_double;
flb_sds_t string;
@@ -55,6 +57,25 @@ struct flb_config_map config_map[] = {
NULL
},
+ /* SIZE */
+ {
+ FLB_CONFIG_MAP_SIZE,
+ "test_size",
+ "2M",
+ 0, FLB_TRUE, offsetof(struct context, size),
+ NULL
+ },
+... |
Fully eradicate last traces of "secure channels". | eth=state-ethereum :: eth-specific state
== ::
++ state-relative :: urbit metadata
- $: $= car :: secure channels
- %+ map ship :: partner
- $: yen/(set duct) :: trackers
- == ::
- $= bal :: balance sheet
+ $: $= bal :: balance sheet
$: yen/(set duct) :: trackers
== ::
$= own :: vault
yen (~(del in yen) hen)
yen.bal.su... |
Update doc/decisions/ensure.md | @@ -52,7 +52,7 @@ elektraNotificationContract (contract, iobinding);
The same for gopts:
```c
-elektraGOptsContract (contract, argc, argv, environ));
+elektraGOptsContract (contract, argc, argv, environ);
```
Finally, we create `KDB` with the contracts we got before:
|
vtep: set SB DB ovsdb_idl to no_leader_only mode
This adds capability to run ovn-controller-vtep against OVN Southbound
OVSDB server running in relay mode. | @@ -154,6 +154,7 @@ main(int argc, char *argv[])
ovsdb_idl_add_column(ovnsb_idl_loop.idl, &sbrec_port_binding_col_type);
ovsdb_idl_add_column(ovnsb_idl_loop.idl, &sbrec_port_binding_col_up);
+ ovsdb_idl_set_leader_only(ovnsb_idl_loop.idl, false);
ovsdb_idl_get_initial_snapshot(ovnsb_idl_loop.idl);
char *ovn_version = o... |
Remove dead code from _bt_update_posting().
Discussion: | @@ -674,11 +674,6 @@ _bt_update_posting(BTVacuumPosting vacposting)
Assert(_bt_posting_valid(origtuple));
Assert(nhtids > 0 && nhtids < BTreeTupleGetNPosting(origtuple));
- if (BTreeTupleIsPosting(origtuple))
- keysize = BTreeTupleGetPostingOffset(origtuple);
- else
- keysize = IndexTupleSize(origtuple);
-
/*
* Determi... |
default to non-eager commit | @@ -56,7 +56,7 @@ static mi_option_desc_t options[_mi_option_last] =
{ 0, UNINIT, MI_OPTION(verbose) },
// the following options are experimental and not all combinations make sense.
- { 1, UNINIT, MI_OPTION(eager_commit) }, // commit on demand
+ { 0, UNINIT, MI_OPTION(eager_commit) }, // commit on demand
#if defined(_... |
py/objmodule: Allow to construct module instances.
A typical use (CPython compatible): type(sys)("modname"). | @@ -114,9 +114,16 @@ STATIC void module_attr(mp_obj_t self_in, qstr attr, mp_obj_t *dest) {
}
}
+STATIC mp_obj_t module_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_kw, const mp_obj_t *args) {
+ (void)type;
+ mp_arg_check_num(n_args, n_kw, 1, 1, false);
+ return mp_obj_new_module(mp_obj_str_get_qstr(args... |
Add support for setting raw private SIPHASH keys | #include "internal/asn1_int.h"
#include "internal/siphash.h"
#include "siphash_local.h"
+#include "internal/evp_int.h"
/*
* SIPHASH "ASN1" method. This is just here to indicate the maximum
@@ -46,6 +47,27 @@ static int siphash_pkey_public_cmp(const EVP_PKEY *a, const EVP_PKEY *b)
return ASN1_OCTET_STRING_cmp(EVP_PKEY_g... |
Fix launcher issue with PhGetApplicationFileName | @@ -2199,6 +2199,11 @@ PPH_STRING PhGetApplicationFileName(
VOID
)
{
+ PPH_STRING fileName;
+
+ if (NT_SUCCESS(PhGetProcessImageFileNameWin32(NtCurrentProcess(), &fileName)))
+ return fileName;
+
return PhGetDllFileName(NtCurrentPeb()->ImageBaseAddress, NULL);
}
@@ -2210,13 +2215,20 @@ PPH_STRING PhGetApplicationDirect... |
Added back sceRudpEnableInternalIoThread2. | @@ -6722,7 +6722,8 @@ modules:
sceRudpActivate: 0xF1151D91
sceRudpBind: 0x8B766108
sceRudpCreateContext: 0x772C07E8
- sceRudpEnableInternalIOThread: 0x87EC465E
+ sceRudpEnableInternalIOThread: 0x3A495E69
+ sceRudpEnableInternalIOThread2: 0x87EC465E
sceRudpEnd: 0x3EA0961E
sceRudpFlush: 0x8D45BA52
sceRudpGetContextStatus... |
Make all NDP configuration parameters user configurable | /** \name RFC 4861 Host constant */
/** @{ */
/** \brief Maximum router solicitation delay */
+#ifndef UIP_CONF_ND6_MAX_RTR_SOLICITATION_DELAY
#define UIP_ND6_MAX_RTR_SOLICITATION_DELAY 1
+#else
+#define UIP_ND6_MAX_RTR_SOLICITATION_DELAY UIP_CONF_ND6_MAX_RTR_SOLICITATION_DELAY
+#endif
/** \brief Router solicitation in... |
docs: add commands to updating esp-idf versions in windows system | @@ -185,7 +185,8 @@ Updating to Stable Release
To update to a new ESP-IDF release (recommended for production use), this is the process to follow:
- Check the `Releases page`_ regularly for new releases.
-- When a bugfix release for the version you are using is released (for example, if using ``v3.0.1`` and ``v3.0.2`` ... |
Add an explicit cast to time_t
Caused a compilation failure in some environments
Fixes | @@ -500,8 +500,8 @@ static int test_default_ct_policy_eval_ctx_time_is_now(void)
{
int success = 0;
CT_POLICY_EVAL_CTX *ct_policy_ctx = CT_POLICY_EVAL_CTX_new();
- const time_t default_time = CT_POLICY_EVAL_CTX_get_time(ct_policy_ctx) /
- 1000;
+ const time_t default_time =
+ (time_t)(CT_POLICY_EVAL_CTX_get_time(ct_pol... |
session: improve .api comments slightly
Type: style | /*
- * Copyright (c) 2015-2019 Cisco and/or its affiliates.
+ * Copyright (c) 2015-2020 Cisco and/or its affiliates.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
@@ -70,7 +70,7 @@ define ap... |
add supported target to ESP32-S2 Temperature Sensor Example | +| Supported Targets | ESP32-S2 |
+| ----------------- | -------- |
+
# ESP32-S2 Temperature Sensor Example
The ESP32-S2 has a built-in temperature sensor. The temperature sensor module contains an 8-bit Sigma-Delta ADC and a temperature offset DAC.
|
Update: term name update | <(<gripper --> [holding]> &/ <({SELF} * $obj) --> ^goto>) =/> <$obj --> [left]>>.
//If gripper is open and a bottle is seen, pick it up to hold it
-<((<gripper --> [open]> &/ <bottle --> [locX]>) &/ <({SELF} * bottle) --> ^pick>) =/> G>.
+<((<gripper --> [open]> &/ <bottle --> [locationX]>) &/ <({SELF} * bottle) --> ^p... |
libuv timer fix
'Unlink' the timer before calling the timer callback | @@ -326,6 +326,7 @@ socklen_t get_peername_uncached(h2o_socket_t *_sock, struct sockaddr *sa)
static void on_timeout(uv_timer_t *uv_timer)
{
h2o_timer_t *timer = H2O_STRUCT_FROM_MEMBER(h2o_timer_t, uv_timer, uv_timer);
+ timer->is_linked = 0;
timer->cb(timer);
}
|
Add resfs_file_exists helper.
Note: mandatory check (NEED_CHECK) was skipped | @@ -32,6 +32,10 @@ def iteritems(prefix='', strip_prefix=False):
yield key, value
+def resfs_file_exists(path):
+ return resfs_src(path, resfs_file=True) is not None
+
+
def resfs_files(prefix=''):
decode = lambda s: s
if isinstance(prefix, six.text_type):
|
py/objgenerator: Check for already running generator ASAP.
Before performing modifications on value stack. | @@ -172,6 +172,13 @@ mp_vm_return_kind_t mp_obj_gen_resume(mp_obj_t self_in, mp_obj_t send_value, mp_
*ret_val = MP_OBJ_STOP_ITERATION;
return MP_VM_RETURN_NORMAL;
}
+
+ // We set self->globals=NULL while executing, for a sentinel to ensure the generator
+ // cannot be reentered during execution
+ if (self->globals == ... |
Update makeplot.py
Dropped print statement in examples/EarthInterior/makeplot.py. | @@ -20,7 +20,7 @@ if (sys.argv[1] != 'pdf' and sys.argv[1] != 'png'):
out = vplot.GetOutput()
# Print final state
-print('Final: t=%.3f TUMan=%.1f TMan=%.1f TCMB=%.1f HflowUMan=%.1f HflowCMB=%.1f RadPowerMan=%.1f RadPowerCore=%.1f MagMom=%.1f RIC=%.1f'%(out.earth.Time[-1],out.earth.TUMan[-1],out.earth.TMan[-1],out.eart... |
Fix Error: chip/nuc_serial.c:357:20: error: unused function 'up_restoreuartint' [-Werror,-Wunused-function] | @@ -354,12 +354,14 @@ static inline void up_disableuartint(struct nuc_dev_s *priv, uint32_t *ier)
* Name: up_restoreuartint
****************************************************************************/
+#ifdef HAVE_CONSOLE
static inline void up_restoreuartint(struct nuc_dev_s *priv, uint32_t ier)
{
uint32_t setbits = i... |
types BUGFIX correct type argument for validating string's length | @@ -47,7 +47,7 @@ lyplg_type_store_string(const struct ly_ctx *ctx, const struct lysc_type *type,
/* value_len is in bytes, but we need number of characters here */
snprintf(buf, LY_NUMBER_MAXLEN, "%zu", char_count);
- ret = lyplg_type_validate_range(LY_TYPE_BINARY, type_str->length, char_count, buf, err);
+ ret = lypl... |
adding if_nametoindex and if_indextoname | @@ -644,9 +644,9 @@ GO(iconv_close, iFu)
GO(iconv_open, uFpp)
GO(iconv_canonicalize, pFp)
// if_freenameindex
-// if_indextoname
+GO(if_indextoname, pFup)
// if_nameindex
-// if_nametoindex
+GO(if_nametoindex, uFp)
// imaxabs // Weak
// imaxdiv // Weak
// in6addr_any // type R
|
Fix some error return codes | @@ -282,7 +282,7 @@ boot_read_swap_state_by_id(int flash_area_id, struct boot_swap_state *state)
}
break;
default:
- return BOOT_EFLASH;
+ return BOOT_EBADARGS;
}
rc = boot_read_swap_state(fap, state);
@@ -326,7 +326,7 @@ boot_write_flag(int flag, const struct flash_area *fap)
off = boot_image_ok_off(fap);
break;
defau... |
Adds Planck Unit module back to project. | +[submodule "src/tests/planckunit"]
+ path = src/tests/planckunit
+ url = https://github.com/iondbproject/planck-unit
+ branch = iondb-sub
[submodule "dotfiles"]
path = dotfiles
url = https://github.com/iondbproject/utility-scripts
|
OpenCorePlatform: Fix setting InitialTSC for automatic mode | @@ -44,6 +44,7 @@ OcPlatformUpdateDataHub (
OC_DATA_HUB_DATA Data;
EFI_GUID Uuid;
UINT64 StartupPowerEvents;
+ UINT64 InitialTSC;
EFI_DATA_HUB_PROTOCOL *DataHub;
DataHub = OcDataHubInstallProtocol (FALSE);
@@ -145,6 +146,8 @@ OcPlatformUpdateDataHub (
Data.BoardRevision = &MacInfo->DataHub.BoardRevision[0];
StartupPowe... |
nimble/ll: Fix not using configured TX power for advertising
If TX power was tuned with HCI VS command, advertising was using
default value anyway. | @@ -1806,7 +1806,7 @@ ble_ll_adv_set_adv_params(const uint8_t *cmdbuf, uint8_t len)
return BLE_ERR_INV_HCI_CMD_PARMS;
}
- advsm->adv_txpwr = MYNEWT_VAL(BLE_LL_TX_PWR_DBM);
+ advsm->adv_txpwr = g_ble_ll_tx_power;
#if MYNEWT_VAL(BLE_LL_CFG_FEAT_LL_PRIVACY)
if (cmd->own_addr_type > BLE_HCI_ADV_OWN_ADDR_RANDOM) {
@@ -2783,... |
update ACCEL_FACTOR | #include <sensor_msgs/BatteryState.h>
#include <sensor_msgs/MagneticField.h>
-#define ACCEL_FACTOR -0.0005981 // (-9.8) * ADC_Value / Scale => Range : +- 2[g]
+#define ACCEL_FACTOR 0.000598550415 // (ADC_Value / Scale) * 9.80665 => Range : +- 2[g]
// Scale : +- 16384
#define GYRO_FACTOR 0.0010642 // (ADC_Value/Scale) *... |
Cleanup new DRBG in known answer test | @@ -36,7 +36,7 @@ int kat_entropy(struct s2n_blob *blob)
return 0;
}
-struct s2n_drbg kat_drbg = {.entropy_generator = &kat_entropy};
+struct s2n_drbg kat_drbg = {0};
static int kat_get_random_bytes(struct s2n_blob *blob)
{
@@ -83,6 +83,7 @@ int main(int argc, char **argv, char **envp) {
// Set the NIST rng to the same... |
YQL_UDF -> YQL_UDF_MODULE, YQL_UDF_MULTIMODULE -> YQL_UDF. | @@ -1462,12 +1462,12 @@ otherwise {
YQL_UDF_LINK_CMD=$LINK_DYN_LIB && ${tool:"yql/tools/udf_probe"} $TARGET ${kv;hide:"p UD"}
}
-### @usage: YQL_UDF(name)
+### @usage: YQL_UDF_MODULE(name)
### Definition of the project YQL with C++ UDF (User Defined Function YQL)
### https://wiki.yandex-team.ru/yql/udf/cpp/
###
### Mod... |
i2c: Fix multiple-enqueue of the same request on NACK
i2c_request_send() will retry the request if the error is a NAK,
however it forgets to clear the "ud.done" flag. It will thus
loop again and try to re-enqueue the same request causing internal
request list corruption. | @@ -224,11 +224,10 @@ int i2c_request_send(int bus_id, int dev_addr, int read_write,
rc = ud.rc;
- if (rc == OPAL_I2C_NACK_RCVD)
- continue;
- else
/* error or success */
+ if (rc != OPAL_I2C_NACK_RCVD)
break;
+ ud.done = false;
}
prlog(PR_DEBUG, "I2C: %s req op=%x offset=%x buf=%016llx buflen=%d "
|
py/obj: uncrustify codestyle fix. | @@ -228,7 +228,9 @@ bool mp_obj_equal(mp_obj_t o1, mp_obj_t o2) {
// both SMALL_INT, and not equal if we get here
return false;
} else {
- mp_obj_t temp = o2; o2 = o1; o1 = temp;
+ mp_obj_t temp = o2;
+ o2 = o1;
+ o1 = temp;
// o2 is now the SMALL_INT, o1 is not
// fall through to generic op
}
|
getFreeSensorId() use const iterator versions, cbegin() and cend() | @@ -4406,7 +4406,7 @@ int getFreeSensorId()
{
bool ok;
const int sid = c.id().toInt(&ok);
- if (ok && std::find(sensorIds.begin(), sensorIds.end(), sid) == sensorIds.end())
+ if (ok && std::find(sensorIds.cbegin(), sensorIds.cend(), sid) == sensorIds.cend())
{
sensorIds.push_back(sid);
}
@@ -4440,7 +4440,7 @@ int getFr... |
in_tail: use new utils_split() prototype | @@ -165,7 +165,7 @@ static int tail_exclude_generate(struct flb_tail_config *ctx)
* The exclusion path might content multiple exclusion patterns, first
* let's split the content into a list.
*/
- list = flb_utils_split(ctx->exclude_path, ',');
+ list = flb_utils_split(ctx->exclude_path, ',', -1);
if (!list) {
return -1... |
Simplify #ifdefs a bit. | @@ -87,15 +87,14 @@ sctp_init(struct protosw *pp SCTP_UNUSED, struct domain *dp SCTP_UNUSED)
sctp_init(void)
#endif
{
-#if !defined(__Panda__) && !defined(__Userspace__)
+#if !defined(__Userspace__)
u_long sb_max_adj;
+#else
+ init_random();
#endif
/* Initialize and modify the sysctled variables */
sctp_init_sysctls();... |
Better diagnostic | @@ -107,7 +107,7 @@ class ExternalDataInfo(object):
@property
def path(self):
- assert "://" in self.uri, self.uri
+ assert self.uri.count("://") == 1, self.uri
_, path = self.uri.split("://")
return path
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.