message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
ur: adds failing jam test case | @@ -1799,6 +1799,12 @@ _test_jam_cue(void)
TEST_CASE("wide", ur_coin_bytes(r, inp, sizeof(inp)));
}
+ {
+ uint8_t inp[16] = { 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xc, 0xa8, 0xab, 0x60, 0xef, 0x2d, 0xd, 0x0, 0x0, 0x80 };
+ uint8_t res[19] = { 0x0, 0x2, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x18, 0x50, 0x57, 0xc1, 0xde, 0x5b, 0x1a, 0x... |
Negative goal is actually fine, collision avoidance is learned very well now, it's also collecting food perfectly | @@ -400,6 +400,10 @@ Perception Agent_View()
world[pX][pY].food = false;
spawnFood(true);
}
+ if(ret.forward_pX != pX || ret.forward_pY != pY)
+ {
+ ret.moved = true;
+ }
return ret;
}
@@ -448,6 +452,7 @@ void buildRooms()
}
}
+bool collided = false;
void Agent_Invoke()
{
Perception percept = Agent_View();
@@ -472,14 +... |
raspberrypi-cm3.conf: Define it as a stand alone machine
As well, define the correct configuration for this machine.
Tested this with and without u-boot on CM3 (with internal storage) and
CM3+ without internal storage. | #@NAME: RaspberryPi Compute Module 3 (CM3)
#@DESCRIPTION: Machine configuration for the RaspberryPi Compute Module 3 (CM3)
-MACHINEOVERRIDES = "raspberrypi3:${MACHINE}"
-include conf/machine/raspberrypi3.conf
+DEFAULTTUNE ?= "cortexa7thf-neon-vfpv4"
+require conf/machine/include/tune-cortexa7.inc
+include conf/machine/... |
interface: redirect to base url when unsubscribing, removing, or archiving | @@ -43,13 +43,16 @@ export function ChannelPopoverRoutes(props: ChannelPopoverRoutesProps) {
const handleUnsubscribe = async () => {
const [,,ship,name] = association.resource.split('/');
await api.graph.leaveGraph(ship, name);
+ history.push(props.baseUrl);
};
const handleRemove = async () => {
await api.metadata.remo... |
options/ansi: Increase FILE buffer size to 4096
It might make sense to increase the buffer size even
further but proper benchmarks need to be done to verify
that this is the case. | @@ -54,7 +54,7 @@ abstract_file::abstract_file(void (*do_dispose)(abstract_file *))
: _type{stream_type::unknown}, _bufmode{buffer_mode::unknown}, _do_dispose{do_dispose} {
// TODO: For __fwriting to work correctly, set the __io_mode to 1 if the write is write-only.
__buffer_ptr = nullptr;
- __buffer_size = 128;
+ __bu... |
fix: ws_pong() was wrapping around cws_ping() instead of cws_pong() | @@ -373,8 +373,8 @@ static void
noop_on_binary(void *a, struct websockets *b, const void *c, size_t d)
{return;}
static void
-noop_on_ping(void *a, struct websockets *ws, const char *b, size_t c)
-{ ws_pong(ws, "Default PONG", sizeof("Default PONG")); }
+noop_on_ping(void *a, struct websockets *ws, const char *reason, ... |
libhfuzz/instrument: mark custom memcmp as __attribute__((hot)) | @@ -52,7 +52,7 @@ cmpfeedback_t* globalCmpFeedback = NULL;
uint32_t my_thread_no = 0;
-static int _memcmp(const void* m1, const void* m2, size_t n) {
+__attribute__((hot)) static int _memcmp(const void* m1, const void* m2, size_t n) {
const unsigned char* s1 = (const unsigned char*)m1;
const unsigned char* s2 = (const ... |
Fix the non-standard alignment specifier for C++ | # define WIN32
#endif
+#ifdef WIN32
+# pragma warning(push)
+# pragma warning(disable : 4324)
+#endif
+
#include <stdlib.h>
#if defined(_MSC_VER) && (_MSC_VER < 1800)
/* MSVC < 2013 does not have inttypes.h because it is not C99
#endif /* !defined(WIN32) */
#ifdef WIN32
-# define NGTCP2_ALIGN_BEFORE(N) __declspec(align... |
Document the step to clone the project
This is not obvious to everyone, especially non-developers. | @@ -145,7 +145,14 @@ its directory. For example:
export ANDROID_HOME=~/android/sdk
```
-Then, build `scrcpy`:
+Clone the project:
+
+```bash
+git clone https://github.com/Genymobile/scrcpy
+cd scrcpy
+```
+
+Then, build:
```bash
meson x --buildtype release --strip -Db_lto=true
|
Fixed issue where tailing a file could potentially re-parse part of the log.
Now we simply check that the new size of the log is greater than
the previous size before parsing. | @@ -780,7 +780,7 @@ perform_tail_follow (uint64_t * size1, const char *fn) {
size2 = file_size (fn);
/* file hasn't changed */
- if (size2 == *size1)
+ if (size2 <= *size1)
return;
if (!(fp = fopen (fn, "r")))
|
message count | @@ -37,7 +37,7 @@ def test_table_count():
Test number of available messages to deserialize.
"""
- number_of_messages = 117
+ number_of_messages = 116
assert len(_SBP_TABLE) == number_of_messages
def test_table_unqiue_count():
|
drv_arch: Add note about process termination
and freeing resources (file descriptors). | @@ -37,6 +37,14 @@ Function (PF).
User-space applications can acquire exclusive access to the FME using `open()`,
and release it using `close()` as a privileged user (root).
+.. note::
+
+```
+ In the case that an errant application terminates without freeing
+ the FME/Port resources, Linux closes all file descriptors ... |
tests: in dinvalidate_non_super, ensure invalidate side effect doesn't occur | //
// Ensure that attempting to execute the 'dinvalidate' instruction faults if
-// the thread is in user mode.
-// XXX ensure the side effect of the instruction doesn't occur and the
-// cache line is still valid.
+// the thread is in user mode and doesn't perfom its side effects.
//
+.set DATA_LOCATION, 0x4000
+.set ... |
apps/examples/stat: Improve decoding of file mode. | @@ -109,48 +109,71 @@ static void endusage(void)
static void dump_stat(FAR struct stat *buf)
{
- FAR const char *typename;
+ char details[] = "----------";
if (S_ISLNK(buf->st_mode))
{
- typename = "Link";
+ details[0] = 'l'; /* Takes precedence over type of the target */
}
else if (S_ISCHR(buf->st_mode))
{
- typename ... |
Change events log level
Use log level FPGA_MSG() when trying to detect whether
interrupts are supported in hardware. MCP does not support
interrupts, and an error message could be unnecessary noise
for the user. | @@ -291,7 +291,7 @@ static fpga_result check_interrupts_supported(fpga_handle handle)
if (fme_info.capability & FPGA_FME_CAP_ERR_IRQ) {
res = FPGA_OK;
} else {
- FPGA_ERR("Interrupts not supported in hw");
+ FPGA_MSG("Interrupts not supported in hw");
res = FPGA_NOT_SUPPORTED;
}
} else if (objtype == FPGA_ACCELERATOR) ... |
mac: correct prototype for mac/arch_archThreadInit | @@ -747,4 +747,4 @@ kern_return_t catch_mach_exception_raise_state_identity(
return KERN_SUCCESS;
}
-bool arch_archThreadInit(honggfuzz_t* hfuzz UNUSED, run_t* run UNUSED) { return true; }
+bool arch_archThreadInit(run_t* run UNUSED) { return true; }
|
eyre: use static mark conversions | ::
=* have=mark p.cage.sign
=* desc=tape "from {(trip have)} to json"
- =/ tube=(unit tube:clay)
- =/ tuc=(unit (unit cage))
- (rof ~ %cc [our %home da+now] /[have]/json)
- ?. ?=([~ ~ *] tuc) ~
- `!<(tube:clay q.u.u.tuc)
- ?~ tube
- ((slog leaf+"eyre: no tube {desc}" ~) [~ ~])
- ::
- =/ res (mule |.((u.tube q.cage.sign... |
Fix packet trace output: dpdk_rx_trace must decode the actual ethertype
As opposed to rubbish (typically) 14 octets past the ethertype.
Also fix buffer error code setup in dpdk-input node single loop. | @@ -73,6 +73,35 @@ dpdk_rx_next_from_etype (struct rte_mbuf * mb, vlib_buffer_t * b0)
return VNET_DEVICE_INPUT_NEXT_ETHERNET_INPUT;
}
+always_inline u32
+dpdk_rx_next_from_packet_start (struct rte_mbuf * mb, vlib_buffer_t * b0)
+{
+ word start_delta;
+ int rv;
+
+ start_delta = b0->current_data -
+ ((mb->buf_addr + mb-... |
Add struct API wrapper | CGLM_INLINE mat3s glms_quat_mat3t(versors q)
CGLM_INLINE versors glms_quat_lerp(versors from, versors to, float t)
CGLM_INLINE versors glms_quat_lerpc(versors from, versors to, float t)
+ CGLM_INLINE versors glms_quat_nlerp(versors from, versors to, float t)
CGLM_INLINE versors glms_quat_slerp(versors from, versors to,... |
Winshare connector : remove remaining job abort case | @@ -618,19 +618,6 @@ public class SharedDriveConnector extends org.apache.manifoldcf.crawler.connecto
}
}
- // Check licence file presence
- final String conf_home = System.getenv("MAIN_DATAFARI_CONFIG_HOME");
- String licenceFilePath = null;
- File licence = null;
- if (conf_home != null && !conf_home.isEmpty()) {
- l... |
Use array loads for NEON vector init | @@ -85,8 +85,8 @@ struct vfloat4
*/
ASTCENC_SIMD_INLINE explicit vfloat4(float a, float b, float c, float d)
{
- float32x4_t v { a, b, c, d };
- m = v;
+ float v[4] = { a, b, c, d };
+ m = vld1q_f32(v);
}
/**
@@ -234,8 +234,8 @@ struct vint4
*/
ASTCENC_SIMD_INLINE explicit vint4(int a, int b, int c, int d)
{
- int32x4_... |
setup_psa_key_derivation(): add optional salt parameter | @@ -4715,6 +4715,7 @@ static psa_status_t setup_psa_key_derivation( psa_key_derivation_operation_t* de
psa_algorithm_t alg,
const unsigned char* seed, size_t seed_length,
const unsigned char* label, size_t label_length,
+ const unsigned char* salt, size_t salt_length,
size_t capacity )
{
psa_status_t status;
@@ -4731,6... |
Remove call to yr_mem_stats. | @@ -1247,14 +1247,5 @@ _exit:
yr_finalize();
- #if defined(JEMALLOC)
- YR_MEM_STATS stats;
- yr_mem_stats(&stats);
- printf("allocated: %zu\n", stats.allocated);
- printf("active: %zu\n", stats.active);
- printf("resident: %zu\n", stats.resident);
- printf("metadata: %zu\n", stats.metadata);
- #endif
-
return result;
}... |
Remove deprecated -T option
The short option -T is deprecated since v1.11. Only the long version
(--always-on-top) remains. | @@ -799,7 +799,7 @@ scrcpy_parse_args(struct scrcpy_cli_args *args, int argc, char *argv[]) {
optind = 0; // reset to start from the first argument in tests
int c;
- while ((c = getopt_long(argc, argv, "b:fF:hKm:nNp:r:s:StTvV:w",
+ while ((c = getopt_long(argc, argv, "b:fF:hKm:nNp:r:s:StvV:w",
long_options, NULL)) != -... |
netutils/ntpclient: modify debug message options
This patch removes the local debug options on the following messages
- error messages of sendto() and recvfrom()
- 'Set time' message
The above messages will be always shown when CONFIG_DEBUG_NET_ERROR
is enabled. | @@ -289,10 +289,8 @@ static void ntpc_settime(FAR uint8_t *timestamp)
tp.tv_nsec = nsec;
clock_settime(CLOCK_REALTIME, &tp);
- if (g_debug) {
ndbg("Set time to %lu seconds\n", (unsigned long)tp.tv_sec);
}
-}
/****************************************************************************
* Name: ntpc_daemon
@@ -392,10 +39... |
Fix script issues with paths including spaces from env variable.
$(FT90X_TOOLCHAIN) or even $(TOP) may have spaces. Quote to fix. | @@ -8,7 +8,7 @@ ifeq ($(FT9XX_PREBUILT_LIBS),1)
# If the FT90X toolchain is installed on Windows systems then the SDK
# include files and prebuilt libraries are at: %FT90X_TOOLCHAIN%/hardware
FT9XX_SDK = $(FT90X_TOOLCHAIN)/hardware
-INC += $(FT9XX_SDK)/include
+INC += "$(FT9XX_SDK)/include"
else
# The submodule BRTSG-F... |
Fix process general tab button alignment | @@ -98,7 +98,7 @@ BEGIN
PUSHBUTTON "Permissions",IDC_PERMISSIONS,143,218,50,14
PUSHBUTTON "Terminate",IDC_TERMINATE,197,218,50,14
GROUPBOX "File",IDC_FILE,7,7,246,103
- ICON "",IDC_FILEICON,14,18,21,20
+ ICON "",IDC_FILEICON,14,18,20,20
EDITTEXT IDC_NAME,44,17,182,12,ES_AUTOHSCROLL | ES_READONLY | NOT WS_BORDER
EDITTEX... |
Update: english_to_narsese.py: allow to switch from event to eternal mode in NLP channel via command | @@ -199,6 +199,7 @@ def GrammarLearning(y = "", forced = False):
motivation = None
thinkcycles = None
+eternal = False
while True:
currentTime += 1
#Get input line and forward potential command
@@ -211,6 +212,12 @@ while True:
isCommand = line.startswith("*") or line.startswith("//") or line.isdigit() or line.startswit... |
horadric update (392844084) | },
"horadric":{
"formula": {
- "sandbox_id": 347723612,
+ "sandbox_id": 392844084,
"match": "horadric"
},
"executable": {
|
imagetopdf: Silenced warning. | @@ -982,7 +982,6 @@ main(int argc, /* I - Number of command-line arguments */
float pw = PageRight-PageLeft;
float ph = PageTop-PageBottom;
int tempOrientation = Orientation;
- int flag =3;
if((val = cupsGetOption("orientation-requested",num_options,options))!=NULL) {
tempOrientation = atoi(val);
}
|
[numerics] level of verbose in numerics_printf_verbose | @@ -143,9 +143,9 @@ void numerics_printf(const char * fmt, ...)
}
}
-void numerics_printf_verbose(int verbose_mode, const char * fmt, ...)
+void numerics_printf_verbose(int verbose_level, const char * fmt, ...)
{
- if (verbose_mode)
+ if (verbose >= verbose_level)
{
va_list args;
va_start(args,fmt);
|
check i2d_ASN1_TYPE return value
add a length check to the return value of function i2d_ASN1_TYPE. Return an error instead of trying to malloc a negative number.
CLA: trivial | @@ -280,6 +280,8 @@ static int do_dump(unsigned long lflags, char_io *io_ch, void *arg,
t.type = str->type;
t.value.ptr = (char *)str;
der_len = i2d_ASN1_TYPE(&t, NULL);
+ if (der_len <= 0)
+ return -1;
if ((der_buf = OPENSSL_malloc(der_len)) == NULL) {
ERR_raise(ERR_LIB_ASN1, ERR_R_MALLOC_FAILURE);
return -1;
|
Fix buffer (and string) used as callee for indexing. | @@ -228,7 +228,8 @@ static Janet call_nonfn(JanetFiber *fiber, Janet callee) {
int32_t argn = fiber->stacktop - fiber->stackstart;
Janet ds, key;
if (argn != 1) janet_panicf("%v called with arity %d, expected 1", callee, argn);
- if (janet_checktypes(callee, JANET_TFLAG_INDEXED | JANET_TFLAG_DICTIONARY | JANET_TFLAG_AB... |
Fix usbhost/usbhost_hidmouse.c:1693:13: error: unused function 'usbhost_putle16' | @@ -326,7 +326,6 @@ static inline int usbhost_devinit(FAR struct usbhost_state_s *priv);
/* (Little Endian) Data helpers */
static inline uint16_t usbhost_getle16(const uint8_t *val);
-static inline void usbhost_putle16(uint8_t *dest, uint16_t val);
/* Transfer descriptor memory management */
@@ -1675,27 +1674,6 @@ sta... |
s5j/serial: rename UFSTAT bitfield
For better consistency,
s/UART_UFSTAT_RX_FIFO_MASK/UART_UFSTAT_RX_FIFO_FULL_MASK/ | #define UART_UFSTAT_RX_FIFO_ERROR (0x1 << UART_UFSTAT_RX_FIFO_ERROR_SHIFT)
#define UART_UFSTAT_RX_FIFO_FULL_SHIFT 8
-#define UART_UFSTAT_RX_FIFO_MASK (0x1 << UART_UFSTAT_RX_FIFO_FULL_SHIFT)
+#define UART_UFSTAT_RX_FIFO_FULL_MASK (0x1 << UART_UFSTAT_RX_FIFO_FULL_SHIFT)
#define UART_UFSTAT_RX_FIFO_FULL (0x1 << UART_UFSTA... |
input: use log2 insdtead of log2l | @@ -153,7 +153,7 @@ static void fuzz_perfFeedbackForMinimization(run_t* run) {
uint64_t cov[4] = {
[0] = softCntEdge + softCntPc,
- [1] = run->dynamicFileSz ? (64 - (uint64_t)log2l(run->dynamicFileSz))
+ [1] = run->dynamicFileSz ? (64 - (uint64_t)log2(run->dynamicFileSz))
: 64, /* The smaller input size, the better */
... |
docker: add strace package to opensuse package.Dockerfile | FROM opensuse/leap:15.3
-RUN zypper update -y
+RUN zypper update -y \
+ && zypper install -y strace \
+ && zypper clean --all
# Create User:Group
# The id is important as jenkins docker agents use the same id that is running
|
Remove NULL pointer validation in pkparse.c | #define mbedtls_free free
#endif
-/* Parameter validation macros based on platform_util.h */
-#define PK_VALIDATE_RET( cond ) \
- MBEDTLS_INTERNAL_VALIDATE_RET( cond, MBEDTLS_ERR_PK_BAD_INPUT_DATA )
-#define PK_VALIDATE( cond ) \
- MBEDTLS_INTERNAL_VALIDATE( cond )
#if defined(MBEDTLS_FS_IO)
/*
@@ -75,9 +70,6 @@ int mb... |
Build release and leverage all cores | @@ -58,14 +58,14 @@ jobs:
- name: Install dependencies
run: |
sudo apt install ccache ninja-build
- for i in ${{ runner.temp }}/arm-gcc/bin/* ; ln -s /usr/bin/ccache /usr/lib/ccache/$(basename $i); done
+ for i in ${{ runner.temp }}/arm-gcc/bin/* ; do ln -s /usr/bin/ccache /usr/lib/ccache/$(basename $i); done
ccache -M... |
0.3.0: it appears stat on a directory has no size on windows | @@ -10,6 +10,6 @@ System.print(stat.linkCount >= 1) // expect: true
System.print(stat.user is Num) // expect: true
System.print(stat.group is Num) // expect: true
System.print(stat.specialDevice) // expect: 0
-System.print(stat.size > 0) // expect: true
+System.print(stat.size is Num) // expect: true
System.print(stat.... |
spelling in RELNOTES. | @@ -9,7 +9,7 @@ FEATURES:
The local socket does not use SSL, but unencrypted traffic, use
file and containing directory permissions to restrict access.
- configure --enable-systemd (needs pkg-config and libsystemd) can
- be used to then use-systemd: yes in nsd.conf and readiness
+ be used to then use-systemd: yes in ns... |
feat[platon]:Modify platon2c.py | # limitations under the License.
-# This python script generates Ethereum's C language interface function from contract ABI (solidity).
+# This python script generates PlatON's C language interface function from contract ABI (solidity).
# Not all contract ABI can be converted to C interface because C is lack of object-... |
VERSION bump to version 2.1.49 | @@ -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 1)
-set(SYSREPO_MICRO_VERSION 48)
+set(SYSREPO_MICRO_VERSION 49)
set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_MI... |
decisions: code review comments | @@ -16,6 +16,9 @@ But substantial decisions must be made transparently and in a participative way.
- Questions in the PRs are answered by updating the PR and answering with the commit id.
- As generally recommended in Elektra, do not squash after they are visible on the pull request.
- Rebase only if the decision was a... |
Ruby: fixing initialization sequence.
There was a change (ruby/ruby@6c70fed) in Ruby 2.6 that moved
RUBY_DESCRIPTION global constant definition out of Init_version().
Unit initialized Ruby incorrectly, so the constant was not defined.
This closes issue on GitHub. | @@ -85,14 +85,16 @@ static nxt_int_t
nxt_ruby_init(nxt_task_t *task, nxt_common_app_conf_t *conf)
{
int state, rc;
- VALUE dummy, res;
+ VALUE res;
nxt_unit_ctx_t *unit_ctx;
nxt_unit_init_t ruby_unit_init;
nxt_ruby_rack_init_t rack_init;
+ static char *argv[2] = { (char *) "NGINX_Unit", (char *) "-e0" };
+
+ RUBY_INIT_... |
Use luax_setmainthread on Android; | @@ -307,7 +307,7 @@ static void bridgeLovrInitState() {
// Copypaste the init sequence from lovrRun:
// Load libraries
L = luaL_newstate(); // FIXME: Can this be handed off to main.c?
- luax_setmainstate(L);
+ luax_setmainthread(L);
lua_atpanic(L, luax_custom_atpanic);
luaL_openlibs(L);
lovrLog("\n OPENED LIB\n");
@@ -... |
Delayload ServiceNonPoll imports | @@ -167,12 +167,6 @@ BOOLEAN PhServiceProviderInitialization(
RtlInitializeSListHead(&PhpServiceQueryDataListHead);
- if (WindowsVersion >= WINDOWS_8)
- {
- SubscribeServiceChangeNotifications_I = PhGetDllProcedureAddress(L"sechost.dll", "SubscribeServiceChangeNotifications", 0);
- UnsubscribeServiceChangeNotifications... |
compiler-families/intel-compilers-devel: remove echo of manifest files during post-install script. | %include %{_sourcedir}/OHPC_macros
%define pname intel-compilers-devel
-%define year 2018
+%define year 2019
Summary: OpenHPC compatibility package for Intel(R) Parallel Studio XE
Name: %{pname}%{PROJ_DELIM}
@@ -223,9 +223,6 @@ if [ -e %{_localstatedir}/lib/rpm-state/%{name}-needs-upgrade-fix ];then
%{__cp} -p %{OHPC_M... |
Add compile flags for apps and modules | @@ -49,6 +49,10 @@ project:
(MinGW on Windows build host).
mspgcc, iar, iar-proj, gcc
+ Software modules/apps to include:
+ modules A comma, separated list of modules to include in the build.
+ apps A comma, separated list of apps to include in the build.
+
Connected hardware variables:
bootload Location of the board t... |
include/keyboard_scan.h: Format with clang-format
BRANCH=none
TEST=none | @@ -111,7 +111,9 @@ void keyboard_scan_enable(int enable, enum kb_scan_disable_masks mask);
void clear_typematic_key(void);
#else
static inline void keyboard_scan_enable(int enable,
- enum kb_scan_disable_masks mask) { }
+ enum kb_scan_disable_masks mask)
+{
+}
#endif
#ifdef CONFIG_KEYBOARD_SUPPRESS_NOISE
@@ -136,7 +13... |
wifi_manager: Add header file info for doxygen
It displays detailed information on how to include the header file.
* #include <wifi_manager/wifi_manager.h> | @@ -168,6 +168,7 @@ typedef struct {
/**
* @brief Initialize Wi-Fi Manager including starting Wi-Fi interface.
+ * @details @b #include <wifi_manager/wifi_manager.h>
* @param[in] callback functions called when wi-fi events happen
* @return On success, WIFI_MANAGER_SUCCESS (i.e., 0) is returned. On failure, non-zero val... |
add objective printing for infeas / unbdd | @@ -663,12 +663,12 @@ static void print_footer(const ScsData *d, const ScsCone *k, ScsSolution *sol,
scs_printf("dual res: |Px+A'y+c|_2/(1+|c|_2) = %.4e\n", info->res_dual);
scs_printf("rel gap: |x'Px+c'x+b'y|/(1+|x'Px|+|c'x|+|b'y|) = %.4e\n",
info->rel_gap);
+ }
for (i = 0; i < LINE_LEN; ++i) {
scs_printf("-");
}
scs_... |
Make Settings widget bit less ugly | @@ -68,7 +68,7 @@ void Settings::OnUpdate()
if (ImGui::CollapsingHeader("Patches", ImGuiTreeNodeFlags_DefaultOpen))
{
ImGui::TreePush();
- if (ImGui::BeginTable("##SETTINGS_PATCHES", 2, ImGuiTableFlags_Sortable | ImGuiTableFlags_SizingStretchSame | ImGuiTableFlags_Borders, ImVec2(-ImGui::GetStyle().IndentSpacing, 0)))
... |
Tweak man page. | @@ -14,7 +14,7 @@ janet \- run the Janet language abstract machine
.SH DESCRIPTION
Janet is a functional and imperative programming language and bytecode interpreter.
It is a modern lisp, but lists are replaced by other data structures with better utility
-and performance (arrays, tables, structs, tuples). The language... |
OpenCanopy: Fix animation linked list behaviour on Canopy restart | @@ -136,7 +136,7 @@ InternalBootPickerAnimateLabel (
}
STATIC GUI_ANIMATION mBootPickerLabelAnimation = {
- INITIALIZE_LIST_HEAD_VARIABLE (mBootPickerLabelAnimation.Link),
+ { NULL, NULL },
NULL,
InternalBootPickerAnimateLabel
};
@@ -1831,7 +1831,7 @@ InternalBootPickerAnimateTimeout (
}
STATIC GUI_ANIMATION mBootPicke... |
server: Send NO_ERROR when resetting stream without error | @@ -1147,7 +1147,7 @@ int Handler::remove_tx_stream_data(uint32_t stream_id, uint64_t offset,
}
if (stream->streambuf_bytes == 0 && stream->resp_state == RESP_COMPLETED) {
- rv = ngtcp2_conn_reset_stream(conn_, stream_id, NGTCP2_INTERNAL_ERROR);
+ rv = ngtcp2_conn_reset_stream(conn_, stream_id, NGTCP2_NO_ERROR);
if (rv... |
Update test Wi-Fi status callback to return 'joining' state. | @@ -2674,7 +2674,7 @@ test_wifi_status_cb(
if (wifi_data)
{
memset(wifi_data, 0, sizeof(pappl_wifi_t));
- wifi_data->state = PAPPL_WIFI_STATE_OFF;
+ wifi_data->state = PAPPL_WIFI_STATE_NOT_CONFIGURED;
}
if (!system)
@@ -2722,16 +2722,28 @@ test_wifi_status_cb(
strlcpy(wifi_data->ssid, ptr, sizeof(wifi_data->ssid));
wif... |
remove plus from TStringBuf | @@ -404,12 +404,6 @@ public: // string subsequences
return TdSelf(*this).RSeek(len);
}
- // defined in a parent, but repeat for overload above
- Y_PURE_FUNCTION
- inline size_t operator+() const noexcept {
- return length();
- }
-
TGenericString<TChar> ToString() const {
return {Start, Length};
}
|
Fix typo in audiod_rx_done_cb in audio_device.c | @@ -562,7 +562,7 @@ static bool audiod_rx_done_cb(uint8_t rhport, audiod_function_t* audio, uint16_t
case AUDIO_FORMAT_TYPE_I:
- switch (audio->format_type_I_tx)
+ switch (audio->format_type_I_rx)
{
case AUDIO_DATA_FORMAT_TYPE_I_PCM:
TU_VERIFY(audiod_decode_type_I_pcm(rhport, audio, n_bytes_received));
|
Add PhGetProcessPowerThrottlingState/PhSetProcessPowerThrottlingState | @@ -697,6 +697,58 @@ PhGetProcessAppMemoryInformation(
return status;
}
+FORCEINLINE
+NTSTATUS
+PhGetProcessPowerThrottlingState(
+ _In_ HANDLE ProcessHandle,
+ _Out_ PPOWER_THROTTLING_PROCESS_STATE PowerThrottlingState
+ )
+{
+ NTSTATUS status;
+ POWER_THROTTLING_PROCESS_STATE powerThrottlingState;
+
+ memset(&powerTh... |
make roadmap based on feature order, not versions | @@ -62,16 +62,39 @@ You may need to adapt the invocation of `make` above to your platform.
# Tentative roadmap
-This is a *very* preliminary roadmap for Titan, where everything is
+This is a *very* preliminary roadmap towards Titan 1.0, where everything is
subject to change, with things more likely to change the furthe... |
Build: Force CRLF error | @@ -23,6 +23,11 @@ updaterepo() {
fi
pushd "$2" >/dev/null
git pull
+ sym=$(find . -not -type d -exec file "{}" ";" | grep CRLF)
+ if [ "${sym}" != "" ]; then
+ echo "Repository $1 named $2 contains CRLF line endings"
+ exit 1
+ fi
popd >/dev/null
}
@@ -136,6 +141,12 @@ fi
if [ ! -f UDK/UDK.ready ]; then
rm -rf UDK
+
+... |
servo_updater: more informative error on fail
'Can't detect updater version' is replaced with an error
specifying the failed regex string.
BRANCH=None
TEST=None | @@ -137,7 +137,8 @@ def do_updater_version(vidpid, iface, serialno):
return 2
else:
return 6
- return 0
+ raise ServoUpdaterException(
+ "Can't determine updater target from vers: [%s]" % vers)
def findfiles(cname, fname):
"""Select config and firmware binary files.
|
hdata: Add wafer-id property
Wafer id is derived from ECID data.
bits 4:63 are the wafer id ( ten 6 bit fields each containing a code)
Sample output:
[root@wsp xscom@623fc00000000]# lsprop ecid
ecid
[root@wsp xscom@623fc00000000]# lsprop wafer-id
wafer-id "6Q0DG340SO" | @@ -411,6 +411,9 @@ static void add_vas_node(struct dt_node *np, int idx)
static void add_ecid_data(const struct HDIF_common_hdr *hdr,
struct dt_node *xscom)
{
+ char wafer_id[11];
+ uint8_t tmp;
+ int i;
uint32_t size = 0;
struct sppcrd_ecid *ecid;
const struct HDIF_array_hdr *ec_hdr;
@@ -422,6 +425,28 @@ static void ... |
fix:the dev->cfgstring is modifid in tcmu_rbd_open | @@ -349,7 +349,7 @@ static int tcmu_rbd_open(struct tcmu_device *dev)
{
rbd_image_info_t image_info;
char *pool, *name;
- char *config;
+ char *config, *dev_cfg_dup;
struct tcmu_rbd_state *state;
uint64_t rbd_size;
int ret;
@@ -366,13 +366,19 @@ static int tcmu_rbd_open(struct tcmu_device *dev)
return ret;
}
- config =... |
Fix MinGW/Clang 64 bits detection.
CMAKE_COMPILER_IS_GNUCC is only valid for GCC. | @@ -20,11 +20,11 @@ endif()
-if(CMAKE_COMPILER_IS_GNUCC AND WIN32)
+if(MINGW)
execute_process(COMMAND ${CMAKE_C_COMPILER} -dumpmachine
- OUTPUT_VARIABLE OPENBLAS_GCC_TARGET_MACHINE
+ OUTPUT_VARIABLE OPENBLAS_MINGW_TARGET_MACHINE
OUTPUT_STRIP_TRAILING_WHITESPACE)
- if(OPENBLAS_GCC_TARGET_MACHINE MATCHES "amd64|x86_64|AM... |
ELM327: Fixed erroneous warning. | @@ -580,10 +580,10 @@ static void ICACHE_FLASH_ATTR elm_process_obd_cmd_AUTO(const elm_protocol_t* pro
os_printf("*** AUTO trying '%s'\n", proto->name);
proto->init(proto);
proto->process_obd(proto, "0100", 4); // Try sending on the bus
- break;
+ return;
}
- os_printf("ERROR: auto detect entering invalid state.");
}
+... |
system/spi/Kconfig: Simultaneous with Dave Marples patch, kyChu submitted a nearly equivalent change with PR 206. In have enhanced Dave Marples change with some good things form kyChu's PR. | @@ -47,8 +47,10 @@ config SPITOOL_DEFFREQ
Default SPI frequency (default: 4000000)
config SPITOOL_DEFCMD
- int "Send in command mode"
+ int "CMD/DATA select"
default 0
+ range 0 1
+ depends on SPI_CMDDATA
---help---
Send in command or data mode
0 = Data mode
|
zephyr: Cleanup I2C initialization
Move the I2C initialization to compile time, saving a modest amount of
RAM space
BRANCH=none
TEST=zmake testall
TEST=boot Zephyr on Herobrine. | * This macro should be called from within DT_FOREACH_CHILD.
*/
#define INIT_DEV_BINDING(id) \
- i2c_devices[I2C_PORT(id)] = DEVICE_DT_GET(DT_PHANDLE(id, i2c_port));
+ [I2C_PORT(id)] = DEVICE_DT_GET(DT_PHANDLE(id, i2c_port)),
#define INIT_REMOTE_PORTS(id) \
- i2c_remote_ports[I2C_PORT(id)] = DT_PROP_OR(id, remote_port, ... |
Disallow types of the form `type t = t`.
This is an infinite loop, and is not meaningful. | @@ -507,8 +507,14 @@ tyresolve(Type *t)
break;
}
- for (i = 0; i < t->nsub; i++)
+ for (i = 0; i < t->nsub; i++) {
t->sub[i] = tf(t->sub[i]);
+ if (t->sub[i] == t) {
+ lfatal(t->loc,
+ "%s occurs within %s, leading to infinite type\n",
+ tystr(t->sub[i]), tystr(t));
+ }
+ }
base = tybase(t);
/* no-ops if base == t */
i... |
fix upnp for api version >= 14 | @@ -114,10 +114,14 @@ int upnp_handler( struct upnp_handle_t *handle, unsigned short port, time_t life
#if (MINIUPNPC_API_VERSION <= 5)
devlist = upnpDiscover( 1000, NULL, NULL, 0 );
if( devlist == NULL ) {
-#else
+#elif (MINIUPNPC_API_VERSION <= 13)
int err = UPNPDISCOVER_SUCCESS;
devlist = upnpDiscover( 1000, NULL, N... |
fix pytest ya plugin | @@ -39,6 +39,12 @@ _pytest.main.EXIT_NOTESTSCOLLECTED = 0
SHUTDOWN_REQUESTED = False
+def to_str(s):
+ if isinstance(s, six.text_type):
+ return s.encode('utf8')
+ return s
+
+
def configure_pdb_on_demand():
import signal
@@ -647,7 +653,7 @@ class TestItem(object):
if isinstance(entry, _pytest.reports.BaseReport):
self... |
Docs - conditionalizing references to data science packages | <ul id="ul_epg_t2v_qbb">
<li><codeph>plc_python_shared</codeph> - Docker image with Python 2.7.12 installed.<p>The
Python Data Science Module is also installed. The module contains a set python libraries
- related to data science. For information about the module, see <xref
- href="../../install_guide/install_python_ds... |
Fully tested values 5 bit red/blue 0 to 31 and 6 bit green 0 to 63 | @@ -310,9 +310,9 @@ static inline uint32_t lv_color_to32(lv_color_t color)
* Truly any of the listed multipliers and adders would work.
* The below numbers seem the most precise.
*/
- ret.ch.red = ( color.ch.red * 33 ) >> 2;
- ret.ch.green = ( color.ch.green * 4 );
- ret.ch.blue = ( color.ch.blue * 33 ) >> 2;
+ ret.ch.... |
Add DT_SPI_NOR_DRV_NAME check towards sanitycheck in target.h | /*
* Sanity check the target support.
*/
-#if !defined(DT_FLASH_DEV_NAME) || \
+#if (!defined(CONFIG_XTENSA) && !defined(DT_FLASH_DEV_NAME)) || \
+ (defined(CONFIG_XTENSA) && !defined(DT_SPI_NOR_DRV_NAME)) || \
!defined(FLASH_ALIGN) || \
!defined(FLASH_AREA_IMAGE_0_OFFSET) || \
!defined(FLASH_AREA_IMAGE_0_SIZE) || \
|
kodama: disable PD detail log
kodama is tight at RO flash space, disable the
PD detail log to earn 1.4k flash.
BRANCH=kukui
TEST=make BOARD=kodama | #define CONFIG_BATTERY_HW_PRESENT_CUSTOM
+/* free flash space */
+#ifdef SECTION_IS_RO
+#undef CONFIG_USB_PD_DEBUG_LEVEL
+#define CONFIG_USB_PD_DEBUG_LEVEL 0
+#endif
+
/* Battery */
#define BATTERY_DESIRED_CHARGING_CURRENT 2000 /* mA */
|
libtcmu: merge resources release code | @@ -632,6 +632,21 @@ static int open_devices(struct tcmulib_context *ctx)
return num_good_devs;
}
+static void release_resources(struct tcmulib_context *ctx)
+{
+ int ret;
+
+ teardown_netlink(ctx->nl_sock);
+ darray_free(ctx->handlers);
+ darray_free(ctx->devices);
+ free(ctx);
+
+ ret = genl_unregister_family(&tcmu_o... |
Fix memory leak found by Coverity in pg_regress
Not sure if the prehook functionality is used but let's fix the leak
anyway. | @@ -2916,22 +2916,16 @@ regression_main(int argc, char *argv[], init_function ifunc, test_function tfunc
if (prehook[0])
{
- char *fullname = malloc(strlen(inputdir) +
- strlen("/sql/hooks/") +
- strlen(prehook) +
- strlen(".sql") +
- 1 /* '\0' */);
- sprintf(fullname, "%s/sql/hooks/%s.sql", inputdir, prehook);
- preho... |
pg_dump changes to dump a cluster
Minor modifications are made to pg_dump, to allow the table attributes
and functions to be correctly dumped for a cluster. These
changes essentially fix a bug, as the pg_dump should be able to
dump a cluster. | @@ -7249,6 +7249,17 @@ getTableAttrs(Archive *fout, TableInfo *tblinfo, int numTables)
"ORDER BY conname",
tbinfo->dobj.catId.oid);
}
+ else if (fout->remoteVersion >= 70400)
+ {
+ appendPQExpBuffer(q, "SELECT tableoid, oid, conname, "
+ "pg_catalog.pg_get_constraintdef(oid) AS consrc, "
+ "true AS conislocal, true AS ... |
fixed name of entry script to example-vlsi-sky130 | @@ -22,7 +22,7 @@ This example gives a suggested file structure and build system. The ``vlsi/`` fo
* A template file for tool environment configuration. Fill in the install and license server paths for your environment.
-* example-vlsi
+* example-vlsi-sky130
* Entry point to Hammer. Contains example placeholders for ho... |
options/posix: properly implement pthread_mutex_trylock | @@ -385,12 +385,33 @@ int pthread_mutex_lock(pthread_mutex_t *mutex) {
int pthread_mutex_trylock(pthread_mutex_t *mutex) {
SCOPE_TRACE();
- mlibc::infoLogger() << "mlibc: pthread_mutex_trylock() is not implemented correctly" << frg::endlog;
- if(pthread_mutex_lock(mutex)) {
- return EBUSY;
+ unsigned int expected = __a... |
Improve uniform error messages; | @@ -27,17 +27,18 @@ int luax_checkuniform(lua_State* L, int index, const Uniform* uniform, void* des
case UNIFORM_FLOAT:
case UNIFORM_MATRIX:
capacity = blob->size / sizeof(float);
- lovrAssert(capacity >= elements, "Blob can only hold %d float%s, at least %d needed", capacity, s, elements);
+ lovrAssert(capacity >= el... |
emit target in xmake config
ref: | Text="$(XmakeProjectFile) not found at '$(XmakeProjectDirResolved)', please set XmakeProjectDir in vcxproj file" />
</Target>
<Target Name="_XmakeConfig" DependsOnTargets="_XmakeProjCheck">
- <Message Text="$xmake config $(_XmakeCommonFlags) $(_XmakeConfigFlags) $(XmakeTarget)" Importance="High" />
+ <Message Text="$xm... |
Fix Typo in Fuzz Debug Flags | @@ -57,7 +57,7 @@ ifeq ($(S2N_UNSAFE_FUZZING_MODE),1)
# Turn on debugging and fuzzing flags when S2N_UNSAFE_FUZZING_MODE is enabled to give detailed stack traces in case
# an error occurs while fuzzing.
- CFLAGS += ${DEFAULT_CFLAGS} ${DEBUG_FLAGS} ${FUZZ_CFLAGS}
+ CFLAGS += ${DEFAULT_CFLAGS} ${DEBUG_CFLAGS} ${FUZZ_CFLA... |
Removes debug printfs in update_ack_delay | @@ -1578,13 +1578,11 @@ protoop_arg_t update_ack_delay(picoquic_cnx_t* cnx) {
int64_t rtt_estimate = (int64_t) cnx->protoop_inputv[2];
bool first_estimate = (bool) cnx->protoop_inputv[3];
pkt_ctx->ack_delay_local = old_path->rtt_min / 4;
- printf("old_path->rtt_min / 4 = %lu\n", pkt_ctx->ack_delay_local);
if (pkt_ctx->... |
gmskframesync/benchmark: simplifying frame generation somewhat | @@ -41,53 +41,31 @@ void benchmark_gmskframesync(struct rusage * _start,
unsigned int m = 3; // filter delay (symbols)
float BT = 0.5f; // filter bandwidth-time product
unsigned int payload_len = 8; // length of payload (bytes)
- crc_scheme check = LIQUID_CRC_32; // data validity check
- fec_scheme fec0 = LIQUID_FEC_NO... |
Define a method for loading presets with other plugin abi | `-> clap_preset_discovery_indexer.get_metadata() for each presets files
Then to load a preset, use ext/draft/preset-load.h
+ If the plugin do not implement preset-load (or similar extension for other plugin ABI),
+ then it should call the state loading mechanism with the following content:
+ preset-discovery-load\0<uri... |
Add Version negotiation section | @@ -308,3 +308,66 @@ application should keep connection alive:
* :macro:`NGTCP2_ERR_STREAM_SHUT_WR`
* :macro:`NGTCP2_ERR_STREAM_NOT_FOUND`
* :macro:`NGTCP2_ERR_STREAM_ID_BLOCKED`
+
+Version negotiation
+-------------------
+
+Version negotiation is configured with the following
+:type:`ngtcp2_settings` fields:
+
+* :me... |
fix identation
Note: mandatory check (NEED_CHECK) was skipped | @@ -534,7 +534,7 @@ static void BindTreeParams(NLastGetopt::TOpts* parserPtr, NJson::TJsonValue* pla
});
- parser.AddLongOption("growing-policy", "Tree growing policy. One of " + GetEnumAllNames<EGrowingPolicy>())
+ parser.AddLongOption("growing-policy", "Tree growing policy. Must be one of: " + GetEnumAllNames<EGrowin... |
CMSIS-DSP: Modified thresholds for ComplexMathsQ15 tests. | @@ -11,7 +11,7 @@ Reference patterns are generated with
a double precision computation.
*/
-#define ABS_ERROR_Q15 ((q15_t)30)
+#define ABS_ERROR_Q15 ((q15_t)50)
#define ABS_ERROR_Q31 ((q31_t)(1<<15))
void ComplexTestsQ15::test_cmplx_conj_q15()
|
Do not build 3rdparty libs unless they're required | @@ -17,7 +17,7 @@ target_include_directories(
afr_glob_src(mbedtls_src DIRECTORY "${AFR_3RDPARTY_DIR}/mbedtls" RECURSE)
# Build to static library to save some time.
add_library(
- afr_3rdparty_mbedtls STATIC
+ afr_3rdparty_mbedtls STATIC EXCLUDE_FROM_ALL
${mbedtls_src}
)
target_include_directories(
@@ -56,7 +56,7 @@ se... |
kukui: Add LED behavior.
Add simple LED rules.
Charge: red
Discharge under 10 percent: blink red
Full: green
Idle: red or green breath.
TEST=none
BRANCH=none
Commit-Ready: Yilun Lin
Tested-by: Yilun Lin | *TODO(b:80160408): Implement mt6370 led driver.
*/
+#include "battery.h"
+#include "charge_state.h"
+#include "driver/charger/rt946x.h"
#include "hooks.h"
#include "led_common.h"
-/* LEDs on Kukui are active low. */
-#define BAT_LED_ON 0
-#define BAT_LED_OFF 1
-
const enum ec_led_id supported_led_ids[] = { EC_LED_ID_BA... |
Sets a small delay on non-lossy links and sets a 1400 MTU on tunnel interfaces | @@ -24,6 +24,7 @@ class LinuxRouter(Node):
class KiteTopo(Topo):
def build(self, **opts):
+ generic_opts = {'delay': '1ms'}
self.r1 = self.addNode('r1', cls=LinuxRouter)
self.r2 = self.addNode('r2', cls=LinuxRouter)
@@ -35,14 +36,14 @@ class KiteTopo(Topo):
self.addLink(self.s1, self.r1, bw=opts['bw_b'], delay='%dms' %... |
Set tag to 'impossible' value on failure to encrypt | @@ -3626,6 +3626,11 @@ psa_status_t psa_aead_finish( psa_aead_operation_t *operation,
exit:
+ /* In case the operation fails and the user fails to check for failure or
+ * the zero tag size, make sure the tag is set to something impossible. */
+ if( status != PSA_SUCCESS )
+ memset(tag, '!', tag_size);
+
psa_aead_abort... |
fix: Added judgment on input address format | @@ -292,6 +292,12 @@ BOAT_RESULT BoatEthTxInit(BoatEthWallet *wallet_ptr,
return BOAT_ERROR_COMMON_INVALID_ARGUMENT;
}
+ if (!UtilityStringIsHex(recipient_str))
+ {
+ BoatLog(BOAT_LOG_CRITICAL, "The format of recipient is incorrect");
+ return BOAT_ERROR_COMMON_INVALID_ARGUMENT;
+ }
+
tx_ptr->wallet_ptr = wallet_ptr;
m... |
SOVERSION bump to version 3.1.4 | @@ -67,7 +67,7 @@ set(LIBNETCONF2_VERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION
# with backward compatible change and micro version is connected with any internal change of the library.
set(LIBNETCONF2_MAJOR_SOVERSION 3)
set(LIBNETCONF2_MINOR_SOVERSION 1)
-set(LIBNETCONF2_MICRO_SOVERSION 3)
+set(LIBN... |
Fix for mem leak of cwd | @@ -89,7 +89,8 @@ void createAliasesSymlink(const char *aliases, const char *admin_root, const cha
int i;
char *alias_path;
char *bnd_resource_path;
- char *cwd = get_current_dir_name();
+ char cwdBuf[1024] = {0};
+ char *cwd = getcwd(cwdBuf, sizeof(cwdBuf));
while(isspace(*token)) token++; //skip spaces at beginning
f... |
Add missing lock in ocf_ctx_get_volume_type_id() | @@ -98,12 +98,14 @@ int ocf_ctx_get_volume_type_id(ocf_ctx_t ctx, ocf_volume_type_t type)
OCF_CHECK_NULL(ctx);
+ env_rmutex_lock(&ctx->lock);
for (i = 0; i < OCF_VOLUME_TYPE_MAX; ++i) {
if (ctx->volume_type[i] == type)
- return i;
+ break;
}
+ env_rmutex_unlock(&ctx->lock);
- return -1;
+ return (i < OCF_VOLUME_TYPE_MA... |
cooja: remove unused struct members
Remove the unused evptr and dataptr
in cooja_mt_thread.
Also remove the prototype for mt_exec_event,
it has been commented out since its introduction
in 2006. | @@ -97,8 +97,6 @@ void cooja_mtarch_exec(struct cooja_mtarch_thread *thread);
struct cooja_mt_thread {
int state;
- process_event_t *evptr;
- process_data_t *dataptr;
struct cooja_mtarch_thread thread;
};
@@ -138,28 +136,6 @@ void cooja_mt_start(struct cooja_mt_thread *thread, void (* function)(void *), v
*/
void cooja... |
Disable scripts actions on directories | @@ -202,7 +202,23 @@ class FileCollectionViewCell: UICollectionViewCell, UIDocumentPickerDelegate, Sy
}
override func canPerformAction(_ action: Selector, withSender sender: Any?) -> Bool {
- return (action == #selector(remove(_:)) || action == #selector(run(_:)) || action == #selector(open(_:)) || action == #selector(... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.