message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
prevent -isystem-after flag and -isystem in path | @@ -44,8 +44,10 @@ function _translate_arguments(arguments)
if idx == 1 and is_host("windows") and path.extension(arg) == "" then
arg = arg .. ".exe"
end
- if arg:startswith("-isystem", 1, true) then
- arg = arg:replace("-isystem", "-I")
+ if arg:startswith("-isystem-after", 1, true) then
+ arg = "-I" .. arg:sub(13, -1... |
Core(M): Added memory clobbers to get_PRIMASK on GCC to prevent (erroneous) instruction reordering. [Issue | @@ -380,7 +380,7 @@ __attribute__((always_inline)) __STATIC_INLINE uint32_t __get_PRIMASK(void)
{
uint32_t result;
- __ASM volatile ("MRS %0, primask" : "=r" (result) );
+ __ASM volatile ("MRS %0, primask" : "=r" (result) :: "memory" );
return(result);
}
@@ -395,7 +395,7 @@ __attribute__((always_inline)) __STATIC_INLIN... |
board/rtl8721csm/bluetooth: Check active conn before read/write/notify | @@ -331,7 +331,7 @@ trble_result_e rtw_ble_client_disconnect(trble_conn_handle conn_handle)
uint32_t conn_id = conn_handle;
if(GAP_CONN_STATE_CONNECTED == ble_app_link_table[conn_handle].conn_state)
{
- if(ble_tizenrt_client_send_msg(BLE_TIZENRT_DISCONNECT, (void *)conn_id))
+ if(ble_tizenrt_client_send_msg(BLE_TIZENRT... |
Fix a release-only warning that I missed previously | @@ -123,7 +123,11 @@ class WinInetRequestWrapper : public PAL::RefCountedImpl<WinInetRequestWrapper>
// Take over the body buffer ownership, it must stay alive until
// the async operation finishes.
m_bodyBuffer.swap(request->m_body);
- BOOL bResult = ::HttpSendRequest(m_hWinInetRequest, NULL, 0, m_bodyBuffer.data(), (... |
goaccess.c: Curses should not be initialized if '--process-and-exit' is in effect
This amends commit: | @@ -1451,11 +1451,15 @@ main (int argc, char **argv)
initializer ();
/* set stdout */
- if (conf.output_stdout)
+ if (conf.process_and_exit) {
+ /* ignore outputting, process only */
+ } else if (conf.output_stdout) {
set_standard_output ();
+ }
/* set curses */
- else
+ else {
set_curses (&quit);
+ }
/* no log/date/ti... |
Minor decoder fixes
Cosmetic changes
Check `instruction` argument for `NULL` | @@ -60,7 +60,7 @@ typedef struct ZydisDecoderContext_
*/
uint8_t lastSegmentPrefix;
/**
- * @brief Contains the prefix that should be traited as the mandatory-prefix, if the current
+ * @brief Contains the prefix that should be treated as the mandatory-prefix, if the current
* instruction needs one.
*
* The last 0xF3/0... |
Fixed error compiling if never set text in a text event block | @@ -5,6 +5,7 @@ import { indexArray } from "../helpers/array";
import ggbgfx from "./ggbgfx";
import { hi, lo, decHex16, decHex } from "../helpers/8bit";
import compileEntityEvents from "./precompileEntityEvents";
+import { EVENT_TEXT } from "./eventTypes";
const STRINGS_PER_BANK = 430;
@@ -383,7 +384,10 @@ export cons... |
stm32/usb: Use USB HS as main USB device regardless of USB_HS_IN_FS. | #if !defined(MICROPY_HW_USB_MAIN_DEV)
#if defined(MICROPY_HW_USB_FS)
#define MICROPY_HW_USB_MAIN_DEV (USB_PHY_FS_ID)
-#elif defined(MICROPY_HW_USB_HS) && defined(MICROPY_HW_USB_HS_IN_FS)
+#elif defined(MICROPY_HW_USB_HS)
#define MICROPY_HW_USB_MAIN_DEV (USB_PHY_HS_ID)
#else
#error Unable to determine proper MICROPY_HW_... |
braille: Fixed a leak of temporary files. | @@ -43,8 +43,7 @@ case $0 in
*cmxtopdf*) INPUT_FORMAT=cmx ;;
esac
-trap -- 'rm -f "$FILE_FORMAT"' EXIT
-trap -- 'rm -f "$FILE_FORMAT_PDF"' EXIT
+trap -- 'rm -f "$FILE_FORMAT" "$FILE_PDF"' EXIT
FILE_FORMAT=$(mktemp "${TMPDIR:-/tmp}/vectortopdf.XXXXXX.${INPUT_FORMAT}")
FILE_PDF=$(mktemp "${TMPDIR:-/tmp}/vectortopdf.XXXXX... |
primus: remove CONFIG_SYSTEM_UNLOCKED
The CONFIG_SYSTEM_UNLOCKED is not required now. Let's remove it
from the setting.
TEST=make BOARD=primus | /* Baseboard features */
#include "baseboard.h"
-#define CONFIG_SYSTEM_UNLOCKED
-
/*
* This will happen automatically on NPCX9 ES2 and later. Do not remove
* until we can confirm all earlier chips are out of service.
|
SOVERSION bump to version 2.2.3 | @@ -63,7 +63,7 @@ set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_
# set version of the library
set(LIBYANG_MAJOR_SOVERSION 2)
set(LIBYANG_MINOR_SOVERSION 2)
-set(LIBYANG_MICRO_SOVERSION 2)
+set(LIBYANG_MICRO_SOVERSION 3)
set(LIBYANG_SOVERSION_FULL ${LIBYANG_MAJOR_SOVERSION}.${LIBYANG_MI... |
Fix Demo App deployment target | CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
INFOPLIST_FILE = TrustKitDemo/Info.plist;
- IPHONEOS_DEPLOYMENT_TARGET = 7.0;
+ IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "com.data... |
Fix save directory to use system path separator; | @@ -308,18 +308,19 @@ bool lovrFilesystemSetIdentity(const char* identity) {
#else
// Make sure there is enough room to tack on /LOVR/<identity>
- if (cursor + strlen("/LOVR") + 1 + length >= sizeof(state.savePath)) {
+ if (cursor + 1 + strlen("LOVR") + 1 + length >= sizeof(state.savePath)) {
return false;
}
// Append ... |
support switching usb modes | @@ -158,23 +158,6 @@ uart_ring *get_ring_by_number(int a) {
}
}
-void debug_ring_callback(uart_ring *ring) {
- char rcv;
- while (getc(ring, &rcv)) {
- putc(ring, rcv);
-
- // jump to DFU flash
- if (rcv == 'z') {
- enter_bootloader_mode = ENTER_BOOTLOADER_MAGIC;
- NVIC_SystemReset();
- }
- if (rcv == 'x') {
- // norma... |
doc: GSG's python dependence
For config_tools use python to clear dirty files, add python dependence
while prepare development computer. | @@ -154,7 +154,7 @@ To set up the ACRN build environment on the development computer:
.. code-block:: bash
- sudo pip3 install lxml xmlschema defusedxml
+ sudo pip3 install lxml xmlschema defusedxml tqbm
#. Create a working directory:
|
github.com/jackc/pgx: enable dependencies required for v4 | @@ -75,6 +75,10 @@ ALLOW .* -> vendor/github.com/heetch/confita
ALLOW .* -> vendor/github.com/iancoleman/strcase
# PostgreSQL driver and toolkit for Go
+ALLOW .* -> vendor/github.com/jackc/pgx/v4
+ALLOW .* -> vendor/github.com/jackc/pgconn
+ALLOW .* -> vendor/github.com/jackc/pgtype
+# v3 is to be deprecated in the fut... |
Fix build (issue | @@ -475,7 +475,7 @@ ImageNode *LoadSVGImage(const char *fileName, int rwidth, int rheight,
} else if(preserveAspect) {
if(abs(dim.width - rwidth) < abs(dim.height - rheight)) {
xscale = (float)rwidth / dim.width;
- height = dim.height * xscale;
+ rheight = dim.height * xscale;
} else {
xscale = (float)rheight / dim.hei... |
test BUGFIX remove unused variables | @@ -322,10 +322,8 @@ test_toplevel(void **state)
"<a>3</a>"
"<b>1</b>"
"</l2>";
- struct lyd_node *tree, *node;
+ struct lyd_node *tree;
struct ly_set *set;
- int dynamic;
- const char *val_str;
tree = lyd_parse_mem(ctx, data, LYD_XML, LYD_OPT_STRICT | LYD_VALOPT_DATA_ONLY);
assert_non_null(tree);
|
test-suite: update common/funcitons for gcc8 | @@ -158,6 +158,10 @@ check_compiler_family()
myCC=gcc
myCXX=g++
myFC=gfortran
+ elif [ $LMOD_FAMILY_COMPILER == "gnu8" ];then
+ myCC=gcc
+ myCXX=g++
+ myFC=gfortran
elif [[ $LMOD_FAMILY_COMPILER =~ "llvm" ]];then
myCC=clang
myCXX=clang++
|
CI: Also try ppc64le | @@ -22,6 +22,12 @@ matrix:
sudo: required
compiler: gcc
env: TRAVIS_ARCH="arm64"
+ - arch: ppc64le
+ os: linux
+ dist: bionic
+ sudo: required
+ compiler: gcc
+ env: TRAVIS_ARCH="ppc64le"
- arch: amd64
os: osx
compiler: gcc
|
Add OP_ARYPUSH entry | @@ -2086,6 +2086,34 @@ static inline int op_arycat( mrbc_vm *vm, mrbc_value *regs )
}
+
+
+
+
+//================================================================
+/*! OP_ARYPUSH
+
+ ary_push(R[a],R[a+1]..R[a+b])
+
+ @param vm pointer of VM.
+ @param regs pointer to regs
+ @retval 0 No error.
+*/
+static inline int op_a... |
Fix compilation.
This fixes | @@ -6812,7 +6812,7 @@ sctp_pcb_init()
TAILQ_INIT(&SCTP_BASE_INFO(callqueue));
#endif
#if defined(__Userspace__)
- mbuf_init(NULL);
+ mbuf_initialize(NULL);
atomic_init();
#if defined(INET) || defined(INET6)
recv_thread_init();
|
multiline: rule: append \n if missing | @@ -267,6 +267,7 @@ int flb_ml_rule_process(struct flb_ml_parser *ml_parser,
msgpack_object *val_pattern)
{
int ret;
+ int len;
char *buf_data = NULL;
size_t buf_size = 0;
struct mk_list *head;
@@ -330,7 +331,18 @@ int flb_ml_rule_process(struct flb_ml_parser *ml_parser,
(unsigned char *) buf_data, buf_size);
if (ret) ... |
ps8762: add DCI mode config register
TEST=make
BRANCH=main
Tested-by: Ting Shen | * Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*
- * PS8802 retimer.
+ * PS8802/PS8762 retimer.
*/
#include "usb_mux.h"
#define PS8802_EXTRA_SWING_LEVEL_P0_UP_3 0X07
#define PS8802_EXTRA_SWING_LEVEL_P0_MASK 0X07
+#define PS8802_REG_DCIRX 0x4B
+#define PS8802_AUTO_D... |
ConnectionFT601: add handle check to send functions
also return true in wait functions if handle is invalid or not used
as there is nothing to wait for | @@ -465,7 +465,7 @@ int ConnectionFT601::BeginDataReading(char *buffer, uint32_t length, int ep)
@brief Waits for asynchronous data reception
@param contextHandle handle of which context data to wait
@param timeout_ms number of miliseconds to wait
-@return 1-data received, 0-data not received
+@return true - wait finis... |
Update Platform.c
Changed so that rerender is only forced if the direction button was pressed this frame. | @@ -116,6 +116,7 @@ void Update_Platform() {
player.dir.y = -1;
player.rerender = TRUE;
}
+
if (INPUT_LEFT) {
player.dir.x = -1;
if (INPUT_A) {
@@ -125,7 +126,9 @@ void Update_Platform() {
pl_vel_x -= WALK_ACC;
pl_vel_x = CLAMP(pl_vel_x, -MAX_WALK_VEL, -MIN_WALK_VEL);
}
+ if (INPUT_LEFT_PRESSED) { // update player faci... |
[travis] report bail as failing test case | @@ -14,6 +14,10 @@ export class Urbit
#
@reset-listeners!
process.on \exit ~> @pty.write '\04' # send EOF to gracefully checkpoint
+ @pty.on \exit (code,signal)~>
+ | code => process.exit code
+ | signal => process.exit 128 + signal # repack exit code
+ | _ => #TODO report if unexpected?
#
note: (...args)-> console.log... |
crypto/aes/build.info: Fix AES assembler specs
Two mistakes were made:
1. AES_ASM for x86 was misplaced
2. sse2 isn't applicable for x86_64 code | @@ -3,15 +3,14 @@ LIBS=../../libcrypto
$AESASM=aes_core.c aes_cbc.c
IF[{- !$disabled{asm} -}]
$AESASM_x86=aes-586.s
+ $AESDEF_x86=AES_ASM
$AESASM_x86_sse2=vpaes-x86.s aesni-x86.s
- $AESDEF_x86_sse2=AES_ASM VPAES_ASM
+ $AESDEF_x86_sse2=VPAES_ASM
$AESASM_x86_64=\
- aes-x86_64.s bsaes-x86_64.s \
+ aes-x86_64.s vpaes-x86_6... |
fix relaxation bug with incorrect lengths | @@ -284,17 +284,18 @@ static void update_accel_params(const aa_float *x, const aa_float *f, AaWork *a,
/* f = (1-relaxation) * \sum_i a_i x_i + relaxation * \sum_i a_i f_i */
static void relax(aa_float *f, AaWork *a, aa_int len) {
TIME_TIC
- /* x_work = x - S * work */
+ /* x_work = x initially */
blas_int bdim = (blas... |
Minor tweak in PeliasOnlineGeocodingService - do not send empty search query to server | @@ -39,6 +39,10 @@ namespace carto {
throw NullArgumentException("Null request");
}
+ if (request->getQuery().empty()) {
+ return std::vector<std::shared_ptr<GeocodingResult> >();
+ }
+
std::string baseURL;
{
std::lock_guard<std::mutex> lock(_mutex);
|
Move normal map max partition boost to config init | @@ -618,6 +618,11 @@ astcenc_error astcenc_config_init(
if (flags & ASTCENC_FLG_MAP_NORMAL)
{
+ // Normal map encoding uses L+A blocks, so allow one more partitioning
+ // than normal. We need need fewer bits for endpoints, so more likely
+ // to be able to use more partitions than an RGB/RGBA block
+ config.tune_parti... |
azure pipeline: giving up w/ attempt to add centos. | @@ -7,8 +7,6 @@ jobs:
imageName: 'ubuntu-16.04'
mac:
imageName: 'macos-10.14'
- centos:
- containerImage: 'OpenLogic:CentOS:7.5:latest'
# windows_2017:
# imageName: 'vs2017-win2016'
# windows_2015:
@@ -17,7 +15,6 @@ jobs:
# imageName: 'ubuntu-16.04'
pool:
vmImage: $(imageName)
- container: OpenLogic:CentOS:7.5:latest
s... |
metadata: int -> long, remove obsolete parts | @@ -75,7 +75,7 @@ version/minor = 6
#
[order]
-type = int
+type = long
status = implemented
usedby/plugin = hosts augeas toml
usedby/api = elektraKeyCmpOrder
@@ -355,7 +355,7 @@ description= "collect the remaining command line arguments.
must be specified on a key in the 'spec' namespace"
[args/index]
-type= int
+type=... |
Update README.md
Added `ulab` at the end of the `git clone https://github.com/v923z/micropython-ulab.git` to be consistent with the `make` command. | @@ -20,7 +20,7 @@ git clone https://github.com/micropython/micropython.git
on the command line. This will create a new repository with the name `micropython`. Staying there, clone the `ulab` repository with
```
-git clone https://github.com/v923z/micropython-ulab.git
+git clone https://github.com/v923z/micropython-ulab... |
Changed the motor implementation on PicoExplorer to used breaking mode | @@ -35,7 +35,7 @@ namespace pimoroni {
// setup motor pins
pwm_config motor_pwm_cfg = pwm_get_default_config();
- pwm_config_set_wrap(&motor_pwm_cfg, 255);
+ pwm_config_set_wrap(&motor_pwm_cfg, 5500);
pwm_init(pwm_gpio_to_slice_num(MOTOR1N), &motor_pwm_cfg, true);
gpio_set_function(MOTOR1N, GPIO_FUNC_PWM);
@@ -76,20 +7... |
misc: fix coverity warning in ila plugin
Remove non-null check for a pointer which cannot be null to avoid dead
code warning.
Type: fix | @@ -365,7 +365,7 @@ ila_ila2sir (vlib_main_t * vm,
{
ila_ila2sir_trace_t *tr =
vlib_add_trace (vm, node, p0, sizeof (*tr));
- tr->ila_index = ie0 ? (ie0 - ilm->entries) : ~0;
+ tr->ila_index = ie0 - ilm->entries;
tr->initial_dst = ip60->dst_address;
tr->adj_index = vnet_buffer (p0)->ip.adj_index[VLIB_TX];
}
|
Code space optimization (192 bytes) | #define MAX_NETWORK_TICKER_LEN 8
typedef struct network_info_s {
- const char name[NETWORK_STRING_MAX_SIZE];
- const char ticker[MAX_NETWORK_TICKER_LEN];
+ const char *name;
+ const char *ticker;
uint64_t chain_id;
} network_info_t;
|
netdriver: cleanups, comments | @@ -97,7 +97,10 @@ int netDriver_sockConn(uint16_t portno) {
saddr.sin_family = AF_INET;
saddr.sin_port = htons(portno);
saddr.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
- if (connect(myfd, (const struct sockaddr *)&saddr, sizeof(saddr)) == -1) {
+ while (connect(myfd, (const struct sockaddr *)&saddr, sizeof(saddr)) == ... |
Add missing cone header. | @@ -37,6 +37,9 @@ scs_int SCS(proj_dual_cone)(scs_float *x, const ScsCone *k, ScsConeWork *c,
scs_int iter);
void SCS(finish_cone)(ScsConeWork *c);
+void SCS(set_rho_y_vec)(const ScsCone *k, scs_float scale, scs_float *rho_y_vec,
+ scs_int m);
+
#ifdef __cplusplus
}
#endif
|
rsu: fix bug in error path | @@ -255,7 +255,7 @@ def main():
sys.stderr.write('Acceptable commands:\n')
for dev in compatible:
sys.stderr.write('>{} {} {}\n'.format(prog,
- args.type,
+ args.which,
dev.pci_node.bdf))
raise SystemExit(os.EX_USAGE)
|
Support for info command with args | @@ -148,6 +148,17 @@ redis_arg1(struct msg *r)
return false;
}
+static bool
+redis_arg_upto1(struct msg *r)
+{
+ switch (r->type) {
+ case MSG_REQ_REDIS_INFO:
+ return true;
+ default:
+ break;
+ }
+ return false;
+}
/*
* Return true, if the redis command accepts exactly 2 arguments, otherwise
* return false
@@ -638,9 ... |
fix issue dynamic unloading of DLL with statically linked mimalloc | @@ -485,6 +485,10 @@ static void mi_process_done(void) {
if (process_done) return;
process_done = true;
+ #if defined(_WIN32) && !defined(MI_SHARED_LIB)
+ FlsSetValue(mi_fls_key, NULL); // don't call main-thread callback
+ FlsFree(mi_fls_key); // call thread-done on all threads to prevent dangling callback pointer if s... |
[org] Update debian instructions. | @@ -87,9 +87,10 @@ it and use apt-get to resolve the dependencies:
Now building the packages should succeed. We use "gbp" tools,
i.e. "git buildpackage" to manage this:
- : root@c565375d37b8:~/siconos-deb# gbp buildpackage --git-pristine-tar \
- : --git-pristine-tar-commit --git-upstream-tag='%(version)s' \
- : --git-d... |
Update TaskDispatcher for unsigned target time | @@ -30,7 +30,7 @@ namespace PAL_NS_BEGIN {
{
this->TypeName = TYPENAME(call);
this->Type = Task::Call;
- this->TargetTime = -1;
+ this->TargetTime = 0;
}
TaskCall(TCall& call, int64_t targetTime) :
|
BugID: add max fragment config in httpc for itls | @@ -257,6 +257,14 @@ int32_t httpc_wrapper_ssl_connect(httpc_handle_t httpc,
http_log("%s, mbedtls_ssl_conf_auth_token err -0x%x", __func__, -ret);
goto exit;
}
+#if defined(MBEDTLS_SSL_MAX_FRAGMENT_LENGTH)
+ ret = mbedtls_ssl_conf_max_frag_len(&http_session->https.ssl.conf, MBEDTLS_SSL_MAX_FRAG_LEN_1024);
+ if (ret !=... |
tools/idf_tools.py: Changed default AppData seeder to seeder pip | @@ -1516,7 +1516,7 @@ def action_install_python_env(args): # type: ignore
subprocess.check_call([sys.executable, '-m', 'pip', 'install', '--user', 'virtualenv'],
stdout=sys.stdout, stderr=sys.stderr)
- subprocess.check_call([sys.executable, '-m', 'virtualenv', idf_python_env_path],
+ subprocess.check_call([sys.executab... |
board/nautilus/board.h: Format with clang-format
BRANCH=none
TEST=none | @@ -211,12 +211,7 @@ enum sensor_id {
SENSOR_COUNT,
};
-enum adc_channel {
- ADC_BASE_DET,
- ADC_VBUS,
- ADC_AMON_BMON,
- ADC_CH_COUNT
-};
+enum adc_channel { ADC_BASE_DET, ADC_VBUS, ADC_AMON_BMON, ADC_CH_COUNT };
/* TODO(crosbug.com/p/61098): Verify the numbers below. */
/*
|
AppVeyor: reduce build notification emails | @@ -105,4 +105,4 @@ notifications:
- shahram.najm@ecmwf.int
subject: 'Build {{status}}' # optional
message: "{{message}}, {{commitId}}, ..." # optional
- on_build_status_changed: true
+ on_build_success: false
|
Add SceNpDrmLicense struct | * \usage{psp2/npdrm.h,SceNpDrm_stub}
*/
-
#ifndef _PSP2_NPDRM_H_
#define _PSP2_NPDRM_H_
extern "C" {
#endif
+typedef struct SceNpDrmLicense { // size is 0x200
+ SceInt16 version; // -1, 1
+ SceInt16 version_flags; // 0, 1
+ SceInt16 license_type; // 1
+ SceInt16 license_flags; // 0x400:non-check ecdsa
+ SceUInt64 accou... |
BT Keyboard Focus On Android Version | @@ -908,21 +908,6 @@ static void initMenuMode()
initMenu(studio.menu, studio.tic, studio.fs);
}
-static void enableScreenTextInput()
-{
- if(SDL_HasScreenKeyboardSupport())
- {
- static const EditorMode TextModes[] = {TIC_CONSOLE_MODE, TIC_CODE_MODE};
-
- for(s32 i = 0; i < COUNT_OF(TextModes); i++)
- if(TextModes[i] =... |
Fix another typo in get_old_if. | @@ -653,7 +653,7 @@ get_old_if(const char *ifname)
if(num_old_if >= max_old_if) {
int n = max_old_if == 0 ? 4 : 2 * max_old_if;
struct old_if *new =
- realloc(old_if, max_old_if * sizeof(struct old_if));
+ realloc(old_if, n * sizeof(struct old_if));
if(new != NULL) {
old_if = new;
max_old_if = n;
|
A version with No HLS pragma, and support 2048 vertexes | @@ -26,7 +26,7 @@ typedef ap_uint<VEX_WIDTH> Q_t;
// WRITE RESULTS IN MMIO REGS
void write_results_in_BFS_regs(action_output_reg *Action_Output, action_input_reg *Action_Input,
- ap_uint<32>ReturnCode)
+ ap_uint<32>ReturnCode, ap_uint<VEX_WIDTH> current_vex, ap_uint<32> current_pos)
{
// Always check that ALL Outputs a... |
Export only public methods of FrameSeq. | @@ -243,15 +243,15 @@ private:
m_binormal;
};
-class TINYSPLINECXX_API FrameSeq {
+class FrameSeq {
public:
- FrameSeq(const FrameSeq &other);
- FrameSeq &operator=(const FrameSeq &other);
+ TINYSPLINECXX_API FrameSeq(const FrameSeq &other);
+ TINYSPLINECXX_API FrameSeq &operator=(const FrameSeq &other);
- size_t size(... |
Removing silent check before computing parallel loops. Print Remapping matrix only if silent option is not set. | @@ -753,7 +753,7 @@ __isl_give isl_union_map *pluto_parallel_schedule_with_remapping(isl_union_set *
}
}
- if (options->parallel && !options->silent) {
+ if (options->parallel) {
*ploops = pluto_get_parallel_loops(prog, nploops);
printf("[pluto_mark_parallel] %d parallel loops\n", *nploops);
pluto_loops_print(*ploops, ... |
Use task pool for message dispatch again | @@ -171,13 +171,16 @@ namespace MiningCore.Stratum
}
}
- protected virtual async void OnReceive(StratumClient client, PooledArraySegment<byte> data)
+ protected virtual void OnReceive(StratumClient client, PooledArraySegment<byte> data)
+ {
+ // get off of LibUV event-loop-thread immediately
+ Task.Run(async () =>
+ {
... |
Fix inter cost in bipred
The cost of coding MV ref indices and MV direction was added to bitcost
but not inter cost. Fixed by adding the extra bits to inter as well. | @@ -1579,14 +1579,16 @@ static void search_pu_inter(encoder_state_t * const state,
cost += calc_mvd(state, merge_cand[i].mv[0][0], merge_cand[i].mv[0][1], 0, mv_cand, merge_cand, 0, ref_idx, &bitcost[0]);
cost += calc_mvd(state, merge_cand[i].mv[1][0], merge_cand[i].mv[1][1], 0, mv_cand, merge_cand, 0, ref_idx, &bitcos... |
fs/poll: support poll for regular files and block devices
cherry-picked from nuttx
poll: fix poll for regular files and block devices. Open Group documentation tells that poll (and select) support regular files and that 'Regular files shall always poll TRUE for reading and writing'. | @@ -156,15 +156,28 @@ static int poll_fdsetup(int fd, FAR struct pollfd *fds, bool setup)
return ERROR;
}
+ inode = filep->f_inode;
+
+ if (inode) {
/* Is a driver registered? Does it support the poll method?
* If not, return -ENOSYS
*/
- inode = filep->f_inode;
- if (inode && inode->u.i_ops && inode->u.i_ops->poll) {
... |
delete spurious S's | @@ -30,11 +30,11 @@ AppScope 1.2.0 introduces substantial new functionality:
- To attach to or detach from a process running in a container, it is no longer necessary to run AppScope within the container. You can just scope the container processes from the host. Related issues: [#1061](https://github.com/criblio/appsco... |
python: fix for windows 2004 build issue #no_auto_pr | @@ -3,7 +3,7 @@ pyftdi==0.13.*
pylibftdi
pyserial
requests==2.20.*
-numpy~=1.18 ; python_version >= '3.0'
+numpy~=1.18 ; python_version == '3.5'
+numpy==1.19.3 ; python_version >= '3.6'
pybase64 ; python_version >= '3.0'
python-rapidjson==0.9.1 ; python_version >= '3.0'
-
|
Badger2040: list example now upgrades from old format | @@ -30,13 +30,37 @@ LIST_HEIGHT = HEIGHT - LIST_START - LIST_PADDING - ARROW_HEIGHT
# Default list items - change the list items by editing checklist.txt
list_items = ["Badger", "Badger", "Badger", "Badger", "Badger", "Mushroom", "Mushroom", "Snake"]
+save_checklist = False
+
try:
with open("checklist.txt", "r") as f:
... |
Added python lock for Py_CallObject | @@ -181,8 +181,13 @@ function_return function_py_interface_invoke(function func, function_impl impl,
}
}
+ PyGILState_STATE gstate;
+ gstate = PyGILState_Ensure();
+
result = PyObject_CallObject(py_func->func, tuple_args);
+ PyGILState_Release(gstate);
+
Py_DECREF(tuple_args);
if (result != NULL && ret_type != NULL)
@@... |
Make WAN Perf Previous Results Failure Resilient | @@ -325,7 +325,14 @@ Set-NetAdapterLso duo? -IPv4Enabled $false -IPv6Enabled $false -NoRestart
$RunResults = [Results]::new($PlatformName)
+$RemoteResults = ""
+if ($PreviousResults -ne "") {
+ try {
$RemoteResults = $PreviousResults.$PlatformName
+ } catch {
+ Write-Debug "Failed to get $PlatformName from previous res... |
Fix AXI4 IOBinder for multi-channel systems | @@ -185,9 +185,9 @@ object AddIOCells {
}
def axi4(io: Seq[AXI4Bundle], node: AXI4SlaveNode): Seq[(AXI4Bundle, AXI4EdgeParameters, Seq[IOCell])] = {
- io.zip(node.in).map{ case (mem_axi4, (_, edge)) => {
- val (port, ios) = IOCell.generateIOFromSignal(mem_axi4, Some("iocell_mem_axi4"))
- port.suggestName("mem_axi4")
+ ... |
tools/ci/docker/linux/Dockerfile: Intall libtinfo5 in final image
fix the following error:
/tools/clang-arm-none-eabi/bin/clang: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory | @@ -248,6 +248,7 @@ RUN apt-get update -qq && DEBIAN_FRONTEND="noninteractive" apt-get install -y -q
libpulse-dev libpulse-dev:i386 \
libpython2.7 \
libncurses5-dev \
+ libtinfo5 \
libx11-dev libx11-dev:i386 \
libxext-dev libxext-dev:i386 \
linux-libc-dev:i386 \
|
[libc] Add O_BINARY definition | * Change Logs:
* Date Author Notes
* 2018-02-07 Bernard Add O_DIRECTORY definition in NEWLIB mode.
+ * 2018-02-09 Bernard Add O_BINARY definition
*/
#ifndef LIBC_FCNTL_H__
#define O_DIRECTORY 0x200000
#endif
+#ifndef O_BINARY
+#ifdef _O_BINARY
+#define O_BINARY _O_BINARY
+#else
+#define O_BINARY 0
+#endif
+#endif
+
#el... |
Fix 'redefs' typo in test suite | (assert (= 1 (staticdef2-inc)) "after redefinition with :redef false")
(def dynamicdef2 0)
(defn dynamicdef2-inc [] (+ 1 dynamicdef2))
-(assert (= 1 (dynamicdef2-inc)) "before redefinition with dyn :redefs")
+(assert (= 1 (dynamicdef2-inc)) "before redefinition with dyn :redef")
(def dynamicdef2 1)
-(assert (= 2 (dynam... |
doc: fix wrong path in TESTING | @@ -54,7 +54,7 @@ You have some options to avoid running them as root:
```
Then change the permissions:
```
- chown -R `whoami` `kdb sget system/info/elektra/constants/cmake/CMAKE_INSTALL_PREFIX .`/`kdb get system/info/constants/cmake/KDB_DB_SPEC .`
+ chown -R `whoami` `kdb sget system/info/elektra/constants/cmake/CMAK... |
notifications: fix notification keying
Fixes urbit/landscape#947 | @@ -62,8 +62,8 @@ export function getNotificationKey(
): string {
const base = time.toString();
if ('graph' in notification.index) {
- const { graph, index } = notification.index.graph;
- return `${base}-${graph}-${index}`;
+ const { graph, index, description } = notification.index.graph;
+ return `${base}-${graph}-${i... |
spgram: fixing fprintf argument ordering for gnuplot output | /*
- * Copyright (c) 2008 - 2018 Joseph Gaeddert
+ * Copyright (c) 2007 - 2018 Joseph Gaeddert
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
@@ -446,7 +446,7 @@ int SPGRAM(_export_gnuplot)(SPGRAM() _q,
fpr... |
use ll in chunk size computation | @@ -626,7 +626,7 @@ MultiPartInputFile::Data::chunkOffsetReconstruction(OPENEXR_IMF_INTERNAL_NAMESPA
OPENEXR_IMF_INTERNAL_NAMESPACE::Xdr::read <OPENEXR_IMF_INTERNAL_NAMESPACE::StreamIO> (is, packed_sample);
//add 40 byte header to packed sizes (tile coordinates, packed sizes, unpacked size)
- size_of_chunk=packed_offse... |
zephyr: Fix an invalid url in file CMakeLists.txt
Replace with | @@ -33,7 +33,7 @@ endmacro()
# this with a device tree overlay file.
#
# See the Zephyr documentation for more information on DT:
-# https://www.zephyrproject.org/doc/dts/device_tree.html
+# http://docs.zephyrproject.org/devices/dts/device_tree.html
set(DTC_OVERLAY_FILE "${CMAKE_CURRENT_SOURCE_DIR}/dts.overlay")
# Stan... |
Change MD size for tls13 keys | @@ -510,15 +510,15 @@ typedef struct mbedtls_ssl_key_set mbedtls_ssl_key_set;
typedef struct
{
- unsigned char binder_key [ MBEDTLS_MD_MAX_SIZE ];
- unsigned char client_early_traffic_secret [ MBEDTLS_MD_MAX_SIZE ];
- unsigned char early_exporter_master_secret[ MBEDTLS_MD_MAX_SIZE ];
+ unsigned char binder_key [ MBEDTL... |
[Componment] libc: Modify skip timespec define condication. Change IAR version from 8.11.2 to 8.10.1 | @@ -20,7 +20,10 @@ struct timeval {
};
#endif /* _TIMEVAL_DEFINED */
-#if defined ( __ICCARM__ ) && (__VER__ >= 8011002)
+/*
+ * Skip define timespec for IAR version over 8.10.1 where __VER__ is 8010001.
+ */
+#if defined ( __ICCARM__ ) && (__VER__ >= 8010001)
#define _TIMESPEC_DEFINED
#endif
|
ActionTypes.md: Add MLE network accelerator action types | @@ -18,6 +18,8 @@ IBM | 10.14.10.08 | 10.14.10.08 | HLS Hello World
IBM | 10.14.10.09 | 10.14.10.09 | HLS Latency Evaluation
IBM | 10.14.10.0A | 10.14.10.0A | HLS WED/STATUS Sharing and MatrixMultiply
IBM | 10.14.10.0B | 10.14.FF.FF | Reserved for IBM Actions
+MLE | 22.DB.00.01 | 22.DB.00.01 | HDL 10G Ethernet TCP/UDP/... |
Clang emits a format warning in 64-bit droid. | @@ -65,7 +65,7 @@ void EventDecoderListener::OnDebugEvent(DebugEvent &evt)
{
auto PrintEvent = [](const char *lbl, const DebugEvent &e)
{
- printf("%20s: seq=%llu, ts=%llu, type=0x%08x, p1=%zu, p2=%zu\n", lbl, e.seq, e.ts, e.type, e.param1, e.param2);
+ printf("%20s: seq=%llu, ts=%llu, type=0x%08x, p1=%zu, p2=%zu\n", l... |
thread_pool: removed debug message | @@ -144,9 +144,7 @@ int flb_tp_thread_start_id(struct flb_tp *tp, int id)
struct mk_list *head;
struct flb_tp_thread *th = NULL;
- printf("TRANSVERSING : %p\n", &tp->list_threads);
mk_list_foreach(head, &tp->list_threads) {
- printf("TRANSVERSING ENTRY : %d\n", i);
if (i == id) {
th = mk_list_entry(head, struct flb_tp_... |
grunt: Set source current limit to enable 3A output
Call ppc_set_vbus_source_current_limit to enable 3A output.
BRANCH=none
TEST=connect PD sink and see 5V 3A on both ports | @@ -125,8 +125,10 @@ void pd_power_supply_reset(int port)
if (prev_en)
pd_set_vbus_discharge(port, 1);
+#ifdef CONFIG_USB_PD_MAX_SINGLE_SOURCE_CURRENT
/* Give back the current quota we are no longer using */
charge_manager_source_port(port, 0);
+#endif /* defined(CONFIG_USB_PD_MAX_SINGLE_SOURCE_CURRENT) */
/* Notify ho... |
SOVERSION bump to version 5.5.18 | @@ -53,7 +53,7 @@ set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_
# with backward compatible change and micro version is connected with any internal change of the library.
set(SYSREPO_MAJOR_SOVERSION 5)
set(SYSREPO_MINOR_SOVERSION 5)
-set(SYSREPO_MICRO_SOVERSION 17)
+set(SYSREPO_MICRO_S... |
py/compile: Reorder star param to funcs in consistent way.
Instead of swapping star param with a random non-star param, move it to the
end of param list. This allows to reproduce this behavior in other compilers,
e.g. pycopy-lib's compiler. | @@ -3453,10 +3453,18 @@ STATIC void scope_compute_things(scope_t *scope) {
id_info_t *id = &scope->id_info[i];
if (id->flags & ID_FLAG_IS_STAR_PARAM) {
if (id_param != NULL) {
+ #if 0
// swap star param with last param
id_info_t temp = *id_param;
*id_param = *id;
*id = temp;
+ #else
+ // move star param to the end, for... |
Fixed matching of empty version. | @@ -416,6 +416,10 @@ nxt_strvers_match(u_char *version, u_char *prefix, size_t length)
{
u_char next, last;
+ if (length == 0) {
+ return 1;
+ }
+
if (nxt_strncmp(version, prefix, length) == 0) {
next = version[length];
|
release: add update-info-status to release script | @@ -42,10 +42,14 @@ run_updates() {
# regenerate dot of plugins
$SRC_DIR/scripts/dev/draw-all-plugins 2> $BASE_DIR/$VERSION/draw-all-plugins.error > $BASE_DIR/$VERSION/draw-all-plugins
- # Add generated dot of plugins to git and commit
git add $SRC_DIR/doc/images/plugins.*
git commit -a -m "Regenerate dot of plugins fo... |
Respect the non-interactive flag for gpaddmirrors
Previously when running gpaddmirrors the -a flag was being ignored when the cluster was non
standard. | @@ -44,7 +44,8 @@ class GpMirrorBuildCalculator:
The class uses internal state for tracking so cannot be reused after calling getSpreadMirrors or getGroupMirrors
"""
- def __init__(self, gpArray, mirrorPortOffset, mirrorDataDirs):
+ def __init__(self, gpArray, mirrorDataDirs, options):
+ self.__options = options
self._... |
[TFileHandle] Ignore ENOTSUP for fsync on Darwin | @@ -383,7 +383,12 @@ bool TFileHandle::Flush() noexcept {
// EROFS, EINVAL
// fd is bound to a special file which does not support synchronization.
// (from man fsync)
- return ret == 0 || errno == EROFS || errno == EINVAL;
+ return ret == 0 || errno == EROFS || errno == EINVAL
+#if defined(_darwin_)
+ // ENOTSUP fd do... |
tests/offload: printing the allocation size | @@ -169,7 +169,7 @@ int main(int argc, char **argv)
// obtain the node id
get_node_ids();
- PRINTF("Allocating memory for data processing\n");
+ PRINTF("Allocating memory for data processing of %zu MB\n", DATA_SIZE >> 20);
struct capref mem;
int32_t nodes_data[] = {
@@ -206,7 +206,7 @@ int main(int argc, char **argv)
h... |
build: fix clang-format-diff[.py] detection
Fix clang-format-diff autodetection error in case of non-standard
clang-format-diff path. Also allow finding clang-format-diff.py in
non-standard location.
Type: improvement | @@ -60,9 +60,12 @@ fi
if command -v clang-format-diff${SUFFIX} &> /dev/null;
then
CLANG_FORMAT_DIFF=clang-format-diff${SUFFIX}
+elif command -v clang-format-diff.py &> /dev/null;
+then
+ CLANG_FORMAT_DIFF=clang-format-diff.py
elif command -v clang-format-diff &> /dev/null;
then
- CLANG_FORMAT=clang-format-diff
+ CLANG_... |
Docs: Update the chip support matrix for v5.0 | @@ -6,15 +6,16 @@ ESP-IDF is the development framework for Espressif SoCs supported on Windows, Li
# ESP-IDF Release and SoC Compatibility
-The following table shows ESP-IDF support of Espressif SoCs where ![alt text][preview] and ![alt text][supported] denote preview status and support, respectively. In preview status... |
Fix for C++17 latest compiler update | @@ -161,7 +161,7 @@ namespace ARIASDK_NS_BEGIN
/// http - optional IHttpClient override instance
/// taskDispatcher - optional ITaskDispatcher override instance
/// </summary>
- typedef struct
+ typedef struct capi_client_struct
{
ILogManager* logmanager = nullptr;
ILogConfiguration config;
|
jni: mark as memleak again | @@ -52,8 +52,7 @@ if (ADDTESTING_PHASE)
check_binding_was_added ("jna" BINDING_WAS_ADDED)
if (BUILD_TESTING AND BINDING_WAS_ADDED)
- # add_plugintest (jni MEMLEAK)
- add_plugintest (jni)
+ add_plugintest (jni MEMLEAK)
include_directories (${CMAKE_CURRENT_BINARY_DIR})
# Generate header file
|
limit reads to 1M
In case the origin sends data fast, it's possible that we read tens of
megabytes at once, which hurts latency without improving throughput in a
noticeable way. This PR limits the reads done per event loop to 1M. | @@ -117,7 +117,7 @@ static void link_to_statechanged(struct st_h2o_evloop_socket_t *sock)
static const char *on_read_core(int fd, h2o_buffer_t **input)
{
- int read_any = 0;
+ ssize_t read_so_far = 0;
while (1) {
ssize_t rret;
@@ -134,14 +134,17 @@ static const char *on_read_core(int fd, h2o_buffer_t **input)
else
retu... |
chip/stm32/usart_info_command.c: Format with clang-format
BRANCH=none
TEST=none | @@ -39,7 +39,5 @@ static int command_usart_info(int argc, char **argv)
return EC_SUCCESS;
}
-DECLARE_CONSOLE_COMMAND(usart_info,
- command_usart_info,
- NULL,
+DECLARE_CONSOLE_COMMAND(usart_info, command_usart_info, NULL,
"Display USART info");
|
clay: grab tmp desk jamfile correctly | ~| [%tmp desk]
?~ tmp=(~(get by dir.ank.dom) ~.tmp) !!
?~ new=(~(get by dir.u.tmp) desk) !!
- ?~ fil.u.new !!
- =* fil u.fil.u.new
+ ?~ jam=(~(get by dir.u.new) ~.jam) !!
+ ?~ fil.u.jam !!
+ =* fil u.fil.u.jam
?> =(%jam p.q.fil)
;;(@ q.q.fil)
--
|
[CI] Cache Python dependencies | @@ -23,13 +23,14 @@ jobs:
with:
# Requires Python >= 3.9 for str.removesuffix()
python-version: '3.9'
+ # https://github.com/actions/setup-python#caching-packages-dependencies
+ cache: 'pip'
+ cache-dependency-path: 'python-dependencies.txt'
+ - run: pip install -r python-dependencies.txt
- # Runs a set of commands usi... |
stm32/boards/PYBD_SF2: Disable GCC 11 warnings for array bounds.
With GCC 11 there is now a warning about array bounds of OTP-mac, due to
the OTP being a literal address. | @@ -64,7 +64,15 @@ void board_sleep(int value) {
void mp_hal_get_mac(int idx, uint8_t buf[6]) {
// Check if OTP region has a valid MAC address, and use it if it does
if (OTP->series == 0x00d1 && OTP->mac[0] == 'H' && OTP->mac[1] == 'J' && OTP->mac[2] == '0') {
+ #if __GNUC__ >= 11
+ #pragma GCC diagnostic push
+ #pragm... |
NetKVM: MTU Report: Fix mtu offset | @@ -533,7 +533,7 @@ InitializeMaxMTUConfig(PPARANDIS_ADAPTER pContext)
{
virtio_get_config(
&pContext->IODevice,
- 0,
+ ETH_ALEN + 2 * sizeof(USHORT),
&pContext->MaxPacketSize.nMaxDataSize,
sizeof(USHORT));
}
|
HV: initialize IOMMU before PCI device discovery
In later patches we use information from DMAR tables to guide discovery
and initialization of PCI devices. | @@ -224,12 +224,12 @@ void init_pcpu_post(uint16_t pcpu_id)
timer_init();
setup_notification();
setup_posted_intr_notification();
- init_pci_pdev_list();
if (init_iommu() != 0) {
panic("failed to initialize iommu!");
}
+ init_pci_pdev_list(); /* init_iommu must come before this */
ptdev_init();
if (init_sgx() != 0) {
|
Release: Remove duplicate section header | @@ -243,8 +243,6 @@ Thanks to Michael Zronek and Vanessa Kos.
- The OPMPHM has a new test case *(Kurt Micheli)*
- Do not execute `fcrypt` and `crypto` unit tests if the `gpg` binary is not available. *(Peter Nirschl)*
-## Compatibility
-
[#1887]: https://github.com/ElektraInitiative/libelektra/issues/1887
## Build
|
Removed stats port, stats addr and stats interval parameters from README.md as they are no longer accepted. | @@ -41,8 +41,7 @@ To build Dynomite in _debug mode_:
## Help
Usage: dynomite [-?hVdDt] [-v verbosity level] [-o output file]
- [-c conf file] [-s stats port] [-a stats addr]
- [-i stats interval] [-p pid file]
+ [-c conf file] [-p pid file]
Options:
-h, --help : this help
|
[chainmaker][#1140]query err message dispaly | @@ -575,19 +575,20 @@ BOAT_RESULT BoatHlchainmakerContractQuery(BoatHlchainmakerTx *tx_ptr, char* meth
query_response->gas_used = 0;
query_response->code = tx_response->code;
- memset(query_response->message, 0, BOAT_RESPONSE_MESSAGE_MAX_LEN);
- memset(query_response->contract_result, 0, BOAT_RESPONSE_CONTRACT_RESULT_M... |
Fixed macro values for ADP5061.
Missing macro value ADP5061_VTRM_4V22
Macro values 4.14V to 4.22V were off. | @@ -312,10 +312,11 @@ int adp5061_set_regs(struct adp5061_dev *dev, uint8_t addr,
#define ADP5061_VTRM_4V08 0x1D
#define ADP5061_VTRM_4V10 0x1E
#define ADP5061_VTRM_4V12 0x1F
-#define ADP5061_VTRM_4V14 0x21
-#define ADP5061_VTRM_4V16 0x22
-#define ADP5061_VTRM_4V18 0x23
-#define ADP5061_VTRM_4V20 0x24
+#define ADP5061_... |
GLKRVP: Correct GPIO assignment for PCH_WAKE_L
BRANCH=glkrvp
TEST=In S3, toggling PCH_WAKE_L wakes system to S0.
Commit-Ready: Vijay P Hiremath
Tested-by: Vijay P Hiremath | @@ -28,7 +28,7 @@ GPIO_INT(EC_VOLDN_BTN_ODL, PIN(3, 7), GPIO_INT_BOTH | GPIO_PULL_UP, button_inter
GPIO(PCH_SMI_L, PIN(C, 6), GPIO_ODR_HIGH) /* EC_SMI_ODL */
GPIO(PCH_SCI_L, PIN(7, 6), GPIO_ODR_HIGH) /* EC_SCI_ODL */
GPIO(PCH_PWRBTN_L, PIN(7, 5), GPIO_ODR_HIGH) /* EC_PCH_PWR_BTN_ODL */
-GPIO(PCH_WAKE_L, PIN(7, 0), GPIO... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.